Set minimum window size
parent
3c675bef1b
commit
fd22722f5a
|
@ -16,8 +16,13 @@ let mainWindow;
|
|||
const createWindow = () => {
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow({
|
||||
useContentSize: true,
|
||||
autoHideMenuBar: true, // it adds height for a native menu bar unless we hide it here
|
||||
// setMenu(null) below is too late; it's already decided on the size by then
|
||||
width: 800,
|
||||
height: 600,
|
||||
minWidth: 260,
|
||||
minHeight: 360,
|
||||
icon: require("path").join(__dirname, "../images/icons",
|
||||
process.platform === "win32" ?
|
||||
"windows.ico" :
|
||||
|
|
|
@ -51,7 +51,7 @@ html, body, .jspaint {
|
|||
.jspaint > .vertical {
|
||||
height: 100%;
|
||||
}
|
||||
@media (max-width: 300px) {
|
||||
@media (max-width: 200px) {
|
||||
.horizontal > .component-area {
|
||||
display: none;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ html, body, .jspaint {
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
@media (max-height: 370px) {
|
||||
@media (max-height: 359px) {
|
||||
.vertical > .status-area {
|
||||
display: none !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue