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

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

Issue 494273003: Add a minimum cross axis size to BoxLayout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initialize Created 6 years, 4 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 | ui/views/layout/box_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/layout/box_layout.h
diff --git a/ui/views/layout/box_layout.h b/ui/views/layout/box_layout.h
index 5584a58d3ec1578ee9755244b57635bea97f6db7..1bcbcf958438e6d62498ff28aa904d64c4c612ea 100644
--- a/ui/views/layout/box_layout.h
+++ b/ui/views/layout/box_layout.h
@@ -77,6 +77,10 @@ class VIEWS_EXPORT BoxLayout : public LayoutManager {
inside_border_insets_ = insets;
}
+ void set_minimum_cross_axis_size(int size) {
+ minimum_cross_axis_size_ = size;
+ }
+
// Sets the flex weight for the given |view|. Using the preferred size as
// the basis, free space along the main axis is distributed to views in the
// ratio of their flex weights. Similarly, if the views will overflow the
@@ -159,6 +163,9 @@ class VIEWS_EXPORT BoxLayout : public LayoutManager {
// The flex weight for views if none is set. Defaults to 0.
int default_flex_;
+ // The minimum cross axis size for the layout.
+ int minimum_cross_axis_size_;
+
// The view that this BoxLayout is managing the layout for.
views::View* host_;
« no previous file with comments | « no previous file | ui/views/layout/box_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698