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

Unified Diff: ash/common/system/tray/tray_details_view.cc

Issue 2491713003: Fix sizing of tray details scroll views. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_details_view.cc
diff --git a/ash/common/system/tray/tray_details_view.cc b/ash/common/system/tray/tray_details_view.cc
index 1b175e0ff56a475006abc50ec626c937471be593..85ca0883070bad8fa1617ff36a93a54a3653b7a7 100644
--- a/ash/common/system/tray/tray_details_view.cc
+++ b/ash/common/system/tray/tray_details_view.cc
@@ -386,7 +386,7 @@ void TrayDetailsView::Layout() {
if (scroller_) {
if (UseMd()) {
- gfx::Size scroller_size = scroll_content_->GetPreferredSize();
+ gfx::Size scroller_size = scroller()->GetPreferredSize();
gfx::Size pref_size = GetPreferredSize();
scroller()->ClipHeightTo(
0, scroller_size.height() - (pref_size.height() - height()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698