]> git.proxmox.com Git - pve-manager.git/commit
ui: fix zero-sized panels on fresh chrome start
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 20 Nov 2023 08:02:42 +0000 (09:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Nov 2023 09:14:28 +0000 (10:14 +0100)
commita5216e22bdebe7965412577a674ec10f76fc40f7
tree395f8805a259e5288b1b033a79a0c9f5ea51fdea
parent4f4941f77b81daf7efb5588c1ea7db8e88b4a3fd
ui: fix zero-sized panels on fresh chrome start

it seems in new versions of chrome , this triggers too early on a fresh
start (when autostarting a pve tab), resulting in the
'viewWidth'/'viewHeight' being zero pixels. This means we set the width
of the left and the height of the bottom panel to zero pixels, making
them functionally invisible.

To prevent that, check that the 'viewWidth'/'viewHeight' is big enough
so that the panels still have least 50 pixels left before setting their
size.

Reported in the Forum:
https://forum.proxmox.com/threads/136636/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ TL: point to forum thread ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/Workspace.js