Skip to content

Commit

Permalink
electron 31 window resize fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed Jul 22, 2024
1 parent 6f6817e commit 1afca59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ class Window extends GuiCtrl {
})
this.win.on('resize', (e) => {
e.preventDefault()
const { width, height } = this.win.getContentBounds()
const [width, height] = this.win.getSize()
this.view.setBounds({ x: 0, y: 0, width, height })
})
this.win.focusOnWebView()
Expand Down

0 comments on commit 1afca59

Please sign in to comment.