From 4f90abce23db512c8b2d7b4ead39f32fa25e1458 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 29 Jul 2016 09:56:02 -0700 Subject: [PATCH] Set bounds size to content size --- atom/browser/native_window_views.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 8d7ec3100c..b30317e360 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -545,7 +545,9 @@ gfx::Rect NativeWindowViews::GetBounds() { } gfx::Rect NativeWindowViews::GetContentBounds() { - return window_->GetClientAreaBoundsInScreen(); + gfx::Rect bounds = window_->GetClientAreaBoundsInScreen(); + bounds.set_size(GetContentSize()); + return bounds; } gfx::Size NativeWindowViews::GetContentSize() {