diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index b30317e36093..3fd88f59215d 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -545,9 +545,7 @@ gfx::Rect NativeWindowViews::GetBounds() { } gfx::Rect NativeWindowViews::GetContentBounds() { - gfx::Rect bounds = window_->GetClientAreaBoundsInScreen(); - bounds.set_size(GetContentSize()); - return bounds; + return web_view_->GetBoundsInScreen(); } gfx::Size NativeWindowViews::GetContentSize() {