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

Unified Diff: ui/views/examples/dialog_example.cc

Issue 2706423002: Use GridLayout for DialogClientView's button row. (Closed)
Patch Set: respond to unittest comments Created 3 years, 9 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 | « no previous file | ui/views/window/dialog_client_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/dialog_example.cc
diff --git a/ui/views/examples/dialog_example.cc b/ui/views/examples/dialog_example.cc
index 637c6dafabb1957002431d3e709998ed9e4c4af4..37e8770ea9aeeb41cc8dfe2b16fd6b94d5aef654 100644
--- a/ui/views/examples/dialog_example.cc
+++ b/ui/views/examples/dialog_example.cc
@@ -245,6 +245,10 @@ void DialogExample::ResizeDialog() {
// Q: Do we need NonClientFrameView::GetWindowBoundsForClientBounds() here?
// A: When DialogCientView properly feeds back sizes, we do not.
widget->SetBoundsConstrained(preferred_bounds);
+
+ // For user-resizable dialogs, ensure the window manager enforces any new
+ // minimum size.
+ widget->OnSizeConstraintsChanged();
}
void DialogExample::ButtonPressed(Button* sender, const ui::Event& event) {
« no previous file with comments | « no previous file | ui/views/window/dialog_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698