Skip to content

Commit cb84413

Browse files
committed
Use the correct bounds for setting the main content view size
Regression from #2542; fixes #2565 (UI overflows on Windows when the window is maximized)
1 parent 9d7e4ec commit cb84413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function createWindowWithBounds (bounds, customArgs) {
233233
newWin.contentView.addChildView(mainView)
234234

235235
newWin.on('resize', function() {
236-
const winBounds = newWin.getBounds()
236+
const winBounds = newWin.getContentBounds()
237237
mainView.setBounds({x: 0, y: 0, width: winBounds.width, height: winBounds.height})
238238
})
239239

0 commit comments

Comments
 (0)