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

Unified Diff: ui/message_center/views/message_center_view.cc

Issue 15071002: WIP - loop in LayoutManager for preferred size changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: scoped layouter Created 7 years, 7 months 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 | ui/message_center/views/message_popup_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_center_view.cc
diff --git a/ui/message_center/views/message_center_view.cc b/ui/message_center/views/message_center_view.cc
index 4c7cef3ba6730c0fba3bc6aafa3d2700c49f0bb7..ff6c7a977225133c8352edcf84af5b744c5f9459 100644
--- a/ui/message_center/views/message_center_view.cc
+++ b/ui/message_center/views/message_center_view.cc
@@ -255,7 +255,7 @@ RichMessageCenterButtonBar::RichMessageCenterButtonBar(
// Overridden from views::View:
void RichMessageCenterButtonBar::ChildVisibilityChanged(views::View* child) {
- InvalidateLayout();
+ Layout();
}
// Overridden from views::ButtonListener:
@@ -916,9 +916,8 @@ void MessageCenterView::NotificationsChanged() {
button_bar_->SetCloseAllVisible(false);
scroller_->set_focusable(false);
}
- scroller_->InvalidateLayout();
PreferredSizeChanged();
- Layout();
+ scroller_->Layout();
}
void MessageCenterView::SetNotificationViewForTest(views::View* view) {
« no previous file with comments | « no previous file | ui/message_center/views/message_popup_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698