Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Issue 2324043002: Bug Fix: Scroll View Shows Unnecessary Scrollbar (Closed)

Created:
4 years, 3 months ago by qiangchen
Modified:
4 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bug Fix: ScrollView Shows Unnecessary Scrollbar 1. For bounded ScrollView, if its content view does not call SetSize() explicitly in the Layout() implementation, horizontal scroll bar will always be visible even if no overflow. 2. With |hide_horizontal_scrollbar_| set to true, we may find that the vertical bar visible when the content height is equal to the container height. This CL fixes the bugs. BUG=644463 Committed: https://crrev.com/8234584f65628f5f8c43341eaaa94dd0b1681f50 Cr-Commit-Position: refs/heads/master@{#417704}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -13 lines) Patch
M chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M ui/views/controls/scroll_view.cc View 4 chunks +9 lines, -5 lines 0 comments Download
M ui/views/controls/scroll_view_unittest.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
qiangchen
A root fix for the previous ghost scrollbar issue. I think my modified logic looks ...
4 years, 3 months ago (2016-09-08 23:49:03 UTC) #3
sky
Glad to see you got to the bottom of it! https://codereview.chromium.org/2324043002/diff/1/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2324043002/diff/1/ui/views/controls/scroll_view.cc#newcode296 ...
4 years, 3 months ago (2016-09-08 23:59:42 UTC) #4
qiangchen
Added Unittest. Thanks. https://codereview.chromium.org/2324043002/diff/1/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2324043002/diff/1/ui/views/controls/scroll_view.cc#newcode296 ui/views/controls/scroll_view.cc:296: void ScrollView::Layout() { On 2016/09/08 23:59:42, ...
4 years, 3 months ago (2016-09-09 16:31:48 UTC) #7
sky
Nice! Thanks, LGTM
4 years, 3 months ago (2016-09-09 20:25:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2324043002/20001
4 years, 3 months ago (2016-09-09 20:53:37 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-09 20:58:54 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 21:01:32 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8234584f65628f5f8c43341eaaa94dd0b1681f50
Cr-Commit-Position: refs/heads/master@{#417704}

Powered by Google App Engine
This is Rietveld 408576698