2
0
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:
Faris Ansari 2019-12-26 23:36:45 +05:30
parent ce0cc1e7e6
commit c846118055

View File

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