'How can i disable the Maximize button for BrowserWindow in Electron?
Im new to Electron.js and im trying to disable the Maximize button, i know its possible but i don't know how to do it.
I tried frame: false
but its not working
My code if it helps:
const win = new BrowserWindow({
autoHideMenuBar: false,
width: 700,
height: 830,
resizable: false,
titleBarStyle: 'hidden',
titleBarOverlay: {
color: '#2f3241',
symbolColor: '#e2c890'
},
frame: false,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
}
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|