ui: backup info: make initial height dependent of body view-height

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-01-19 16:41:21 +01:00
parent 64f3f34623
commit a4240b80e8

View 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'),