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

Unified Diff: ui/message_center/views/message_popup_bubble.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 | « ui/message_center/views/message_center_view.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_popup_bubble.cc
diff --git a/ui/message_center/views/message_popup_bubble.cc b/ui/message_center/views/message_popup_bubble.cc
index 7e45ca5a819b99fe6e54a5e3473c307f5ee54785..dc962d49ca55988bf5c4208d1f539fff4e2891dc 100644
--- a/ui/message_center/views/message_popup_bubble.cc
+++ b/ui/message_center/views/message_popup_bubble.cc
@@ -67,8 +67,9 @@ void PopupBubbleContentsView::Update(
content_->AddChildView(
NotificationView::Create(*(*iter), message_center_, true));
}
- content_->SizeToPreferredSize();
- content_->InvalidateLayout();
+ views::ScopedMaybeLayout layout(content_);
+// content_->SizeToPreferredSize();
+// content_->InvalidateLayout();
Layout();
if (GetWidget())
GetWidget()->GetRootView()->SchedulePaint();
« no previous file with comments | « ui/message_center/views/message_center_view.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698