We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a190495 commit 5681ee5Copy full SHA for 5681ee5
atom/browser/native_window.cc
@@ -219,7 +219,9 @@ gfx::Point NativeWindow::GetPosition() {
219
}
220
221
void NativeWindow::SetContentSize(const gfx::Size& size, bool animate) {
222
- SetSize(ContentBoundsToWindowBounds(gfx::Rect(size)).size(), animate);
+ gfx::Rect bounds = GetContentBounds();
223
+ bounds.set_size(size);
224
+ SetSize(ContentBoundsToWindowBounds(bounds).size(), animate);
225
226
227
gfx::Size NativeWindow::GetContentSize() {
0 commit comments