Index: ui/views/controls/button/label_button.cc |
=================================================================== |
--- ui/views/controls/button/label_button.cc (revision 236640) |
+++ ui/views/controls/button/label_button.cc (working copy) |
@@ -188,6 +188,9 @@ |
const gfx::Insets insets(GetInsets()); |
size.Enlarge(image_size.width() + insets.width(), insets.height()); |
+ // Make the size at least as large as the minimum size needed by the border. |
+ size.SetToMax(border()->GetMinimumSize()); |
+ |
// Increase the minimum size monotonically with the preferred size. |
size.SetToMax(min_size_); |
min_size_ = size; |