From 4751f971e2db52b1c327d76b144a0f67cf958757 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 29 Jul 2016 10:03:35 -0700 Subject: [PATCH] Use View::GetBoundsInScreen to compute content bounds --- atom/browser/native_window_views.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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() {