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

Unified Diff: ui/views/widget/widget.cc

Issue 2337213002: CrOS Window cycle ui - set widget bounds with initparams to avoid extra (Closed)
Patch Set: Created 4 years, 3 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
« ash/common/wm/window_cycle_list.cc ('K') | « ash/common/wm/window_cycle_list.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index ca92c5bd33937456f9f0fb89b183c792f92e93e8..4b3db3f38de3d8f08c9a887d23231c318d6bae06 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1456,7 +1456,7 @@ void Widget::SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds) {
native_widget_->CenterWindow(size);
} else {
// Use the supplied initial bounds.
- SetBoundsConstrained(bounds);
+ SetBounds(bounds);
Evan Stade 2016/09/13 17:26:25 Does this make sense? An alternative would be to j
sky 2016/09/13 19:44:02 This does indeed worry me. Did you look at the his
Evan Stade 2016/09/13 21:59:33 Do you mean TYPE_WINDOW_FRAMELESS? I don't really
}
}
« ash/common/wm/window_cycle_list.cc ('K') | « ash/common/wm/window_cycle_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698