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

Unified Diff: ui/views/window/dialog_client_view.cc

Issue 371633002: LabelButton: cache the last computed preferred size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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/examples/button_example.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_client_view.cc
diff --git a/ui/views/window/dialog_client_view.cc b/ui/views/window/dialog_client_view.cc
index 172ca0fde3dd3b97ed64173cc23ceaea6bfc9721..17f71860057e63e8f736c39af8747044df309b31 100644
--- a/ui/views/window/dialog_client_view.cc
+++ b/ui/views/window/dialog_client_view.cc
@@ -387,7 +387,7 @@ LabelButton* DialogClientView::CreateDialogButton(ui::DialogButton type) {
button->SetFocusable(true);
const int kDialogMinButtonWidth = 75;
- button->set_min_size(gfx::Size(kDialogMinButtonWidth, 0));
+ button->SetMinSize(gfx::Size(kDialogMinButtonWidth, 0));
button->SetGroup(kButtonGroup);
return button;
}
« no previous file with comments | « ui/views/examples/button_example.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698