]> git.proxmox.com Git - novnc-pve.git/commit
fix height on resize
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 8 Aug 2016 09:07:04 +0000 (11:07 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 8 Aug 2016 10:20:38 +0000 (12:20 +0200)
commit6bd3883761d1be621a7cfef79b4f5e9800b3bb4a
treee9a0dbdb6cb12af64da7d76c6c785e4d43386a3b
parenta42cfd15144ece8da475c46b95db03b9becb51b7
fix height on resize

it already was in the comment but i forgot it:

some browsers need an even size,
so we do Floor(x/2)*2

but if we have an uneven height, we get a window
that is a pixel too small, resulting in a scrollbar

so we have to add 1 first (like with the width)
Floor((x+1)/2)*2

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
debian/patches/pveui.patch