Commit a9c34e0c authored by HyeockJinKim's avatar HyeockJinKim Committed by Commit Bot

Make scrollbar always have thumb

Bug: 866923
Change-Id: I7e68f4b199ae41280e3745d47849fe3557d24661
Reviewed-on: https://chromium-review.googlesource.com/c/1257723
Commit-Queue: Jinho Bang <jinho.bang@samsung.com>
Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602222}
parent 417d260b
......@@ -291,8 +291,8 @@ int ScrollbarTheme::ThumbLength(const Scrollbar& scrollbar) {
int length = round(proportion * track_len);
length = std::max(length, MinimumThumbLength(scrollbar));
if (length > track_len)
length = 0; // Once the thumb is below the track length, it just goes away
// (to make more room for the track).
length = track_len; // Once the thumb is below the track length,
// it fills the track.
return length;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment