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

Unified Diff: ui/views/layout/box_layout.cc

Issue 15912007: WIP - loop in LayoutManager for preferred size changes (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix LabelTest 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
Index: ui/views/layout/box_layout.cc
diff --git a/ui/views/layout/box_layout.cc b/ui/views/layout/box_layout.cc
index 011148597553ceac4d8da64bebbf9c75fb1e69b9..8cf97b6666273c34918bdb5c8172f26d9164757b 100644
--- a/ui/views/layout/box_layout.cc
+++ b/ui/views/layout/box_layout.cc
@@ -100,6 +100,10 @@ int BoxLayout::GetPreferredHeightForWidth(View* host, int width) {
return GetPreferredSizeForChildWidth(host, child_width).height();
}
+void BoxLayout::OnChildPreferredSizeChanged(View* host, View* child) {
+ HostPreferredSizeShouldChange(host);
+}
+
gfx::Size BoxLayout::GetPreferredSizeForChildWidth(View* host,
int child_area_width) {
gfx::Rect child_area_bounds;

Powered by Google App Engine
This is Rietveld 408576698