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

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

Issue 82483003: Add GetMinimumSize() for Borders, and make LabelButton auto-size to at least as (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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/controls/focusable_border.cc
===================================================================
--- ui/views/controls/focusable_border.cc (revision 236640)
+++ ui/views/controls/focusable_border.cc (working copy)
@@ -60,6 +60,10 @@
return insets_;
}
+gfx::Size FocusableBorder::GetMinimumSize() const {
+ return gfx::Size();
msw 2013/11/22 18:00:25 Shouldn't this minimum size match the insets or th
Peter Kasting 2013/11/22 22:07:55 In the case where the local bounds are an empty re
+}
+
void FocusableBorder::SetInsets(int top, int left, int bottom, int right) {
insets_.Set(top, left, bottom, right);
}

Powered by Google App Engine
This is Rietveld 408576698