mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix: Disable resizing in small windows
This commit is contained in:
parent
ce0cc1e7e6
commit
c846118055
16
src/App.vue
16
src/App.vue
@ -36,22 +36,30 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
showDatabaseSelector(newValue) {
|
showDatabaseSelector(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
remote.getCurrentWindow().setSize(600, 600);
|
let win = remote.getCurrentWindow();
|
||||||
|
win.setSize(600, 600);
|
||||||
|
win.setResizable(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showSetupWizard(newValue) {
|
showSetupWizard(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
remote.getCurrentWindow().setSize(600, 600);
|
let win = remote.getCurrentWindow();
|
||||||
|
win.setSize(600, 600);
|
||||||
|
win.setResizable(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showSettings(newValue) {
|
showSettings(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
remote.getCurrentWindow().setSize(460, 577);
|
let win = remote.getCurrentWindow();
|
||||||
|
win.setSize(460, 577);
|
||||||
|
win.setResizable(false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showDesk(newValue) {
|
showDesk(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
remote.getCurrentWindow().setSize(1200, 907);
|
let win = remote.getCurrentWindow();
|
||||||
|
win.setSize(1200, 907);
|
||||||
|
win.setResizable(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user