diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index e345c6ecb250..86a402b766b5 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -219,7 +219,9 @@ gfx::Point NativeWindow::GetPosition() { } void NativeWindow::SetContentSize(const gfx::Size& size, bool animate) { - SetSize(ContentBoundsToWindowBounds(gfx::Rect(size)).size(), animate); + gfx::Rect bounds = GetContentBounds(); + bounds.set_size(size); + SetSize(ContentBoundsToWindowBounds(bounds).size(), animate); } gfx::Size NativeWindow::GetContentSize() {