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

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

Issue 2557333003: [ash-md] Stacks child layers properly for sticky header rows (Closed)
Patch Set: Created 4 years 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
Index: ash/common/system/tray/tray_popup_utils.cc
diff --git a/ash/common/system/tray/tray_popup_utils.cc b/ash/common/system/tray/tray_popup_utils.cc
index fef3d0cadb6a98de62648335d6a5b505e4ba5047..be9e2a544fe5d21872f315822864cbaf92845f71 100644
--- a/ash/common/system/tray/tray_popup_utils.cc
+++ b/ash/common/system/tray/tray_popup_utils.cc
@@ -287,6 +287,8 @@ void TrayPopupUtils::ConfigureAsStickyHeader(views::View* view) {
views::Background::CreateSolidBackground(kBackgroundColor));
view->SetBorder(
views::CreateEmptyBorder(gfx::Insets(kMenuSeparatorVerticalPadding, 0)));
+ view->SetPaintToLayer(true);
+ view->layer()->SetFillsBoundsOpaquely(false);
}
void TrayPopupUtils::ConfigureContainer(TriView::Container container,

Powered by Google App Engine
This is Rietveld 408576698