New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 663790 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

System menu detailed views get resized to contents upon shelf layout

Project Member Reported by varkha@chromium.org, Nov 9 2016

Issue description

Version: 56.0.2915.0
OS: Chrome OS

What steps will reproduce the problem?
(1) Open one of the system menu detailed pages (network or Bluetooth)
(2) Make sure there are enough items to show a scrollbar
(3) Force a work area change or shelf layout (e.g. notification popup or display host resize)

What is the expected result?
System menu does not change its size

What happens instead?
System menu is resized to its contents (may become taller or shorter)

I could not repro this with 56.0.2905.0 (dev) on samus so this could be a recent regression.
 
Cc: -est...@chromium.org
Owner: est...@chromium.org
Status: Assigned (was: Available)
Apparently, it is caused by r430316.

estade@, would you mind taking a look?
Sorry, I meant r430619.

Comment 3 by est...@chromium.org, Nov 10 2016

Status: Started (was: Assigned)
collateral damage
Project Member

Comment 4 by bugdroid1@chromium.org, Nov 10 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/dcd3a8aae5f2f849b50b31d95ae7802eaf5db484

commit dcd3a8aae5f2f849b50b31d95ae7802eaf5db484
Author: estade <estade@chromium.org>
Date: Thu Nov 10 03:15:40 2016

Fix sizing of tray details scroll views.

I tried to make this code make more sense, but touching scroll views is
always a bit like Jenga so in the end I went for the minimal change that
fixes the observed bug. (The fragile code is something that we
inherited from the pre-MD layout.)

BUG= 663790 

Review-Url: https://codereview.chromium.org/2491713003
Cr-Commit-Position: refs/heads/master@{#431161}

[modify] https://crrev.com/dcd3a8aae5f2f849b50b31d95ae7802eaf5db484/ash/common/system/tray/tray_details_view.cc

Comment 5 by est...@chromium.org, Nov 10 2016

Status: Fixed (was: Started)

Comment 6 by varkha@chromium.org, Nov 10 2016

Status: Unconfirmed (was: Fixed)
Tried with ToT that I think includes the change (at r431289) and I can still see the detailed view snapping to a larger size when notification arrives (e.g. connecting a fake VPN) or when resizing desktop window host.

Comment 7 by varkha@chromium.org, Nov 10 2016

Status: Assigned (was: Unconfirmed)
Opened Bluetooth menu, resized the host slightly.
Screenshot 2016-11-10 at 2.56.01 PM.png
33.3 KB View Download

Comment 8 by est...@chromium.org, Nov 11 2016

Status: Started (was: Assigned)
seems my fix only worked for detailed views with enough items to create scrollbars...
Project Member

Comment 9 by bugdroid1@chromium.org, Nov 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0ebb32cb3aefbc61483a1dd1cb81561fef0323e4

commit 0ebb32cb3aefbc61483a1dd1cb81561fef0323e4
Author: estade <estade@chromium.org>
Date: Fri Nov 11 22:22:48 2016

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 

Review-Url: https://codereview.chromium.org/2496873002
Cr-Commit-Position: refs/heads/master@{#431666}

[modify] https://crrev.com/0ebb32cb3aefbc61483a1dd1cb81561fef0323e4/ash/common/system/tray/fixed_sized_scroll_view.cc
[modify] https://crrev.com/0ebb32cb3aefbc61483a1dd1cb81561fef0323e4/ash/common/system/tray/tray_details_view.cc
[modify] https://crrev.com/0ebb32cb3aefbc61483a1dd1cb81561fef0323e4/ash/common/system/tray/tray_details_view.h

Status: Fixed (was: Started)
fingers crossed
Components: UI>Shell>Networking
Labels: Network
Status: Verified (was: Fixed)
9534.0.0, 60.0.3092.0

Sign in to add a comment