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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
« no previous file with comments | « ui/views/controls/scrollbar/kennedy_scroll_bar.cc ('k') | ui/views/examples/progress_bar_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index d234408da53803c6aa4c848fed386fba2636fcf8..1dbdea6168c540058494d495eab15cdfde18a090 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -308,7 +308,7 @@ void TabbedPane::SelectTab(Tab* tab) {
gfx::Size TabbedPane::GetPreferredSize() {
gfx::Size size;
for (int i = 0; i < contents_->child_count(); ++i)
- size.ClampToMin(contents_->child_at(i)->GetPreferredSize());
+ size.SetToMax(contents_->child_at(i)->GetPreferredSize());
size.Enlarge(0, tab_strip_->GetPreferredSize().height());
return size;
}
« no previous file with comments | « ui/views/controls/scrollbar/kennedy_scroll_bar.cc ('k') | ui/views/examples/progress_bar_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698