]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: backup info: make initial height dependent of body view-height
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 19 Jan 2023 15:41:21 +0000 (16:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 19 Jan 2023 15:41:21 +0000 (16:41 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/Backup.js

index d69370b694591bffd1febf67459a65a1badf2855..8d1b3ad7672bd4fd4dd030ddea6f8f9e94a2c84c 100644 (file)
@@ -548,7 +548,7 @@ Ext.define('PVE.dc.BackupView', {
            Ext.create('Ext.window.Window', {
                modal: true,
                width: 800,
-               height: 600,
+               height: Ext.getBody().getViewSize().height > 1000 ? 800 : 600, // factor out as common infra?
                resizable: true,
                layout: 'fit',
                title: gettext('Backup Details'),