Index: ui/views/controls/button/label_button.cc |
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc |
index aca2427aafc83b774551be541e67ebb730c483ee..6014bdc9cff9a71322b1e946caf94c4f40314ee9 100644 |
--- a/ui/views/controls/button/label_button.cc |
+++ b/ui/views/controls/button/label_button.cc |
@@ -174,12 +174,12 @@ gfx::Size LabelButton::GetPreferredSize() { |
gfx::Size size(label.GetPreferredSize()); |
if (image_width > 0 && size.width() > 0) |
size.Enlarge(kSpacing, 0); |
- size.ClampToMin(gfx::Size(0, image_size.height())); |
+ size.SetToMax(gfx::Size(0, image_size.height())); |
const gfx::Insets insets(GetInsets()); |
size.Enlarge(image_size.width() + insets.width(), insets.height()); |
// Increase the minimum size monotonically with the preferred size. |
- size.ClampToMin(min_size_); |
+ size.SetToMax(min_size_); |
min_size_ = size; |
// Return the largest known size clamped to the maximum size (if valid). |