mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +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: {
|
||||
showDatabaseSelector(newValue) {
|
||||
if (newValue) {
|
||||
remote.getCurrentWindow().setSize(600, 600);
|
||||
let win = remote.getCurrentWindow();
|
||||
win.setSize(600, 600);
|
||||
win.setResizable(false);
|
||||
}
|
||||
},
|
||||
showSetupWizard(newValue) {
|
||||
if (newValue) {
|
||||
remote.getCurrentWindow().setSize(600, 600);
|
||||
let win = remote.getCurrentWindow();
|
||||
win.setSize(600, 600);
|
||||
win.setResizable(false);
|
||||
}
|
||||
},
|
||||
showSettings(newValue) {
|
||||
if (newValue) {
|
||||
remote.getCurrentWindow().setSize(460, 577);
|
||||
let win = remote.getCurrentWindow();
|
||||
win.setSize(460, 577);
|
||||
win.setResizable(false);
|
||||
}
|
||||
},
|
||||
showDesk(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