summaryrefslogtreecommitdiffstats
path: root/views/controls/native/native_view_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/native/native_view_host.cc')
-rw-r--r--views/controls/native/native_view_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/controls/native/native_view_host.cc b/views/controls/native/native_view_host.cc
index 2ccd207..b443ac9 100644
--- a/views/controls/native/native_view_host.cc
+++ b/views/controls/native/native_view_host.cc
@@ -121,7 +121,7 @@ void NativeViewHost::Layout() {
gfx::Insets insets = GetInsets();
gfx::Point top_left(insets.left(), insets.top());
ConvertPointToWidget(this, &top_left);
- gfx::Rect local_bounds = GetLocalBounds();
+ gfx::Rect local_bounds = GetContentsBounds();
native_wrapper_->ShowWidget(top_left.x(), top_left.y(),
local_bounds.width(),
local_bounds.height());