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/mus/window_tree_host_mus.cc

Issue 2037013003: Initialize stub platform window bounds to those of its mus::Window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_tree_host_mus.cc
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc
index 3251c96febfb4349bfa649da5436a64fdf3e9f7b..dcf8b81f683289fe398bd23644f79efdf7e19422 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -54,6 +54,8 @@ WindowTreeHostMus::WindowTreeHostMus(shell::Connector* connector,
}
SetPlatformWindow(base::WrapUnique(new ui::StubWindow(nullptr)));
+ // Initialize the stub platform window bounds to those of the mus::Window.
+ platform_window()->SetBounds(window->bounds());
sky 2016/06/03 22:12:52 This seems right to me. I see another bug, will fi
// The location of events is already transformed, and there is no way to
// correctly determine the reverse transform. So, don't attempt to transform
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698