2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00

fix: Disable resizing in small windows

This commit is contained in:
Faris Ansari 2019-12-26 23:36:45 +05:30
parent ce0cc1e7e6
commit c846118055

View File

@ -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);
}
}
},