From b5ac72f9cc7c836a923ab81be80a6e3913498a9d Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 25 Sep 2009 23:35:22 +0000 Subject: Native button cleanup: . I nuked NativeButton's minimum_size_ field as it's only used to enforce a minimum size on windows. The code to adjust for minimum size is now ifdef'd on windows. . Changes GTK's button to set the font as appropriate. BUG=none TEST=none Review URL: http://codereview.chromium.org/246007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27288 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/button/checkbox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/controls/button/checkbox.cc') diff --git a/views/controls/button/checkbox.cc b/views/controls/button/checkbox.cc index 9120ace..cba0aaf 100644 --- a/views/controls/button/checkbox.cc +++ b/views/controls/button/checkbox.cc @@ -184,7 +184,8 @@ bool Checkbox::HitTestLabel(const MouseEvent& e) { // Checkbox, private: void Checkbox::Init(const std::wstring& label_text) { - set_minimum_size(gfx::Size(0, 0)); + // Checkboxs don't need to enforce a minimum size. + set_ignore_minimum_size(true); label_ = new Label(label_text); label_->set_has_focus_border(true); label_->SetHorizontalAlignment(Label::ALIGN_LEFT); -- cgit v1.1