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

Unified Diff: views/widget/widget_gtk.cc

Issue 132029: Call Layout directly from SetContentsView. In the case where the Widget is cr... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | views/widget/widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_gtk.cc
===================================================================
--- views/widget/widget_gtk.cc (revision 18717)
+++ views/widget/widget_gtk.cc (working copy)
@@ -236,7 +236,11 @@
DCHECK(widget_); // Widget must have been created by now.
- OnSizeAllocate(widget_, &(widget_->allocation));
+ // Force a layout now, since the attached hierarchy won't be ready for the
+ // containing window's bounds. Note that we call Layout directly rather than
+ // calling OnSizeAllocate, since the RootView's bounds may not have changed,
+ // which will cause the Layout not to be done otherwise.
+ root_view_->Layout();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | views/widget/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698