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

Unified Diff: ui/views/controls/native/native_view_host_aura.cc

Issue 397293005: Fix positioning of children of NativeViewHostAura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
Index: ui/views/controls/native/native_view_host_aura.cc
diff --git a/ui/views/controls/native/native_view_host_aura.cc b/ui/views/controls/native/native_view_host_aura.cc
index 3648a47778b25870c570495b2d4524fde276b829..016e64eb3f254680026d9caf3410b0d26c8ecd96 100644
--- a/ui/views/controls/native/native_view_host_aura.cc
+++ b/ui/views/controls/native/native_view_host_aura.cc
@@ -64,6 +64,9 @@ NativeViewHostAura::NativeViewHostAura(NativeViewHost* host)
: host_(host),
clipping_window_delegate_(new ClippingWindowDelegate()),
clipping_window_(clipping_window_delegate_.get()) {
+ // Set the type so descendant views (including popups) get positioned
+ // appropriately.
+ clipping_window_.SetType(ui::wm::WINDOW_TYPE_CONTROL);
clipping_window_.Init(aura::WINDOW_LAYER_NOT_DRAWN);
clipping_window_.set_owned_by_parent(false);
clipping_window_.SetName("NativeViewHostAuraClip");

Powered by Google App Engine
This is Rietveld 408576698