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

Issue 657159 link

Starred by 3 users

Issue metadata

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

Blocked on:
issue 662605

Blocking:
issue 307091



Sign in to add a comment

Update appearance of cros native scrollbars

Project Member Reported by bokan@chromium.org, Oct 18 2016

Issue description

With --enable-overlay-scrollbar, Aura scrollbars should not consume layout space but should be overlayed on top of content instead. I suspect this isn't the case currently. In ScrollView::Layout we appear to be getting the scrollbar widths and subtracting them from viewport dimensions.

When I added a NOTREACHED in NativeThemeAura for GetPartSize for non-thumb parts, I hit this stacktrace when a message box gets opened:

#0 0x7fdb34023aae base::debug::StackTrace::StackTrace()
#1 0x7fdb3409155f logging::LogMessage::~LogMessage()
#2 0x7fdb29089a71 ui::NativeThemeAura::GetPartSize()
#3 0x7fdb2808e85e views::NativeScrollBarWrapper::GetVerticalScrollBarWidth()
#4 0x7fdb2808d875 views::NativeScrollBar::GetVerticalScrollBarWidth()
#5 0x7fdb2808dc6c views::NativeScrollBar::GetLayoutSize()
#6 0x7fdb28086359 views::ScrollView::GetScrollBarWidth()
#7 0x7fdb28086a16 views::ScrollView::Layout()
#8 0x7fdb28086071 views::ScrollView::SetHeaderOrContents()
#9 0x7fdb28085f0e views::ScrollView::SetContents()
#10 0x7fdb2807f889 views::MessageBoxView::ResetLayoutManager()
#11 0x7fdb2807f339 views::MessageBoxView::Init()
#12 0x7fdb2807f106 views::MessageBoxView::MessageBoxView()

 
Labels: Proj-MaterialDesign-CrOS
Cc: bokan@chromium.org
Labels: M-56
Owner: est...@chromium.org

Comment 3 by est...@chromium.org, Oct 24 2016

Summary: Update appearance of cros native scrollbars (was: Ensure Aura Overlay scrollbars are actually overlay in Views ScrollViews)
I think for m56 we agreed to not have overlay scrollbars per se, but just to update the appearance of the non-overlay scrollbars.

Comment 4 by bokan@chromium.org, Oct 24 2016

Yes, if they're overlay but have no animations, content will be obstructed.

Comment 5 by est...@chromium.org, Oct 24 2016

Issue 658776 has been merged into this issue.

Comment 6 by est...@chromium.org, Oct 24 2016

Tom, Sebastien, what's the scope for this change?

1. all native scrollbars on all Views platforms
2. all native scrollbars on ChromeOS
3. just the scrollbars in the system menu
Blockedon: 662605
Project Member

Comment 8 by bugdroid1@chromium.org, Nov 8 2016

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

commit 744d9b779a63b34bce18c0f2ef9206d4565af1ce
Author: estade <estade@chromium.org>
Date: Tue Nov 08 15:35:39 2016

Use overlay scrollbars for the cros system menu.

These scrollbars are already used in the message center.

These scrollbars are additionally applied to the CrOS system menu tray detail
views (e.g. the list of wifi networks). At a later date, we can enhance
these scrollbars (make sure they match Sebastien's specs) and
generalize their use to more ChromeOS surfaces. Since it affects layout,
we have to carefully make sure not to break anything.

Depends on https://codereview.chromium.org/2480763005/

BUG= 657159 

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

[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ash/common/system/chromeos/ime_menu/ime_menu_tray.cc
[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ash/common/system/tray/fixed_sized_scroll_view.cc
[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ash/common/system/tray/fixed_sized_scroll_view.h
[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ash/common/system/tray/tray_details_view.cc
[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ui/views/controls/scrollbar/base_scroll_bar.h
[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ui/views/controls/scrollbar/overlay_scroll_bar.cc
[modify] https://crrev.com/744d9b779a63b34bce18c0f2ef9206d4565af1ce/ui/views/controls/scrollbar/overlay_scroll_bar.h

Comment 9 by est...@chromium.org, Nov 17 2016

Status: Fixed (was: Assigned)
this is fixed for the scroll bars we use in the system menu and notification center. The rest of the native scrollbars in chrome (e.g. bookmark folder editor, task manager, list of site cookies) are not updated, but those aren't part of system UI.
Added a suggestion in  bug 666798 .
Status: Verified (was: Fixed)

Sign in to add a comment