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

Unified Diff: ash/system/tray/system_tray_bubble.cc

Issue 10332152: Add TraySms for SMS messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bubble sizing code Created 8 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 | « ash/system/tray/system_tray_bubble.h ('k') | ash/system/tray/system_tray_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_bubble.cc
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc
index 7145615c1cc0a4fe8ef09f0696fd2e7dc954d2cf..f88214861ffad5f3f7085a56eaba92c4c48d5c76 100644
--- a/ash/system/tray/system_tray_bubble.cc
+++ b/ash/system/tray/system_tray_bubble.cc
@@ -373,6 +373,9 @@ void SystemTrayBubble::UpdateView(
bubble_type_ = bubble_type;
CreateItemViews(Shell::GetInstance()->tray_delegate()->GetUserLoginStatus());
bubble_widget_->GetContentsView()->Layout();
+ // Make sure that the bubble is large enough for the default view.
+ if (bubble_type_ == BUBBLE_TYPE_DEFAULT)
+ bubble_view_->SizeToContents();
}
void SystemTrayBubble::InitView(const InitParams& init_params) {
« no previous file with comments | « ash/system/tray/system_tray_bubble.h ('k') | ash/system/tray/system_tray_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698