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

Unified Diff: chrome/browser/chromeos/status/status_area_view.cc

Issue 8743014: [cros, Aura] Refresh status area widget bounds on StatusAreaView layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes, merge, prevent double deletion of ShelfLayoutManager Created 9 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
« no previous file with comments | « no previous file | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/status/status_area_view.cc
diff --git a/chrome/browser/chromeos/status/status_area_view.cc b/chrome/browser/chromeos/status/status_area_view.cc
index 55355b2023103f96673bf09a78112e4423b221f7..5f67535a7d0faa5729df7d7762fb5101f4bb54f3 100644
--- a/chrome/browser/chromeos/status/status_area_view.cc
+++ b/chrome/browser/chromeos/status/status_area_view.cc
@@ -13,6 +13,10 @@
#include "ui/gfx/canvas.h"
#include "ui/views/border.h"
+#if defined(USE_AURA)
+#include "ui/views/widget/widget.h"
+#endif
+
// Number of pixels to separate each icon.
#if defined(TOUCH_UI)
const int kSeparation = 25;
@@ -92,6 +96,10 @@ void StatusAreaView::ChildPreferredSizeChanged(View* child) {
// BrowserView know to relayout, which will reset the bounds of this view.
Layout();
PreferredSizeChanged();
+#if defined(USE_AURA)
+ if (GetWidget())
+ GetWidget()->SetSize(GetPreferredSize());
+#endif
}
void StatusAreaView::MakeButtonsActive(bool active) {
« no previous file with comments | « no previous file | ui/aura_shell/aura_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698