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

Issue 2496873002: Try to fix layout of scroll views in TrayDetailsViews. (Closed)

Created:
4 years, 1 month ago by Evan Stade
Modified:
4 years, 1 month ago
Reviewers:
tdanderson
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Try to fix layout of scroll views in TrayDetailsViews. This code is still going to be fairly fragile, but it does get rid of nearly all code in FixedSizedScrollView (for MD), which will hopefully make it easier to reason about layout or make changes. Note that this collaterally fixes a bug where we reserved 1dp at the bottom of the scroller such that elements at the bottom of the scroll area would be 1dp above the bottom of the bubble. The specs show them as full bleed, and this fixes that (plus it makes scroll view layout even simpler because ClipHeightTo doesn't take into account insets). BUG=663790 Committed: https://crrev.com/0ebb32cb3aefbc61483a1dd1cb81561fef0323e4 Cr-Commit-Position: refs/heads/master@{#431666}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -27 lines) Patch
M ash/common/system/tray/fixed_sized_scroll_view.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M ash/common/system/tray/tray_details_view.h View 3 chunks +3 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_details_view.cc View 4 chunks +37 lines, -22 lines 2 comments Download

Messages

Total messages: 14 (7 generated)
Evan Stade
4 years, 1 month ago (2016-11-11 04:59:52 UTC) #4
tdanderson
Evan, one question below: https://codereview.chromium.org/2496873002/diff/1/ash/common/system/tray/tray_details_view.cc File ash/common/system/tray/tray_details_view.cc (right): https://codereview.chromium.org/2496873002/diff/1/ash/common/system/tray/tray_details_view.cc#newcode395 ash/common/system/tray/tray_details_view.cc:395: scroller_->ClipHeightTo(0, scroller_->height()); It seems this ...
4 years, 1 month ago (2016-11-11 20:09:55 UTC) #7
Evan Stade
https://codereview.chromium.org/2496873002/diff/1/ash/common/system/tray/tray_details_view.cc File ash/common/system/tray/tray_details_view.cc (right): https://codereview.chromium.org/2496873002/diff/1/ash/common/system/tray/tray_details_view.cc#newcode395 ash/common/system/tray/tray_details_view.cc:395: scroller_->ClipHeightTo(0, scroller_->height()); On 2016/11/11 20:09:55, tdanderson wrote: > It ...
4 years, 1 month ago (2016-11-11 22:07:25 UTC) #8
tdanderson
On 2016/11/11 22:07:25, Evan Stade wrote: > https://codereview.chromium.org/2496873002/diff/1/ash/common/system/tray/tray_details_view.cc > File ash/common/system/tray/tray_details_view.cc (right): > > https://codereview.chromium.org/2496873002/diff/1/ash/common/system/tray/tray_details_view.cc#newcode395 ...
4 years, 1 month ago (2016-11-11 22:10:29 UTC) #9
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/2496873002/1
4 years, 1 month ago (2016-11-11 22:14:29 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 22:24:00 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 22:44:23 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0ebb32cb3aefbc61483a1dd1cb81561fef0323e4
Cr-Commit-Position: refs/heads/master@{#431666}

Powered by Google App Engine
This is Rietveld 408576698