From: Urban Wallasch Date: Sun, 9 May 2021 15:27:59 +0000 (+0200) Subject: * Botch-fixed initial window height calculation. X-Git-Tag: v0.3~105 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=49064a1563ad71e4a322bbc241a86dec65daa2a4;p=ffpreview.git * Botch-fixed initial window height calculation. --- diff --git a/ffpreview.py b/ffpreview.py index 0fe0200..eb68b8e 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -748,7 +748,7 @@ except Exception as e: # fix window geometry, start main loop scwidth = qApp.style().pixelMetric(QStyle.PM_ScrollBarExtent) * 2 -root.resize(tlwidth*cfg['grid_columns']+scwidth, tlheight*cfg['grid_rows']+scwidth) +root.resize(tlwidth*cfg['grid_columns']+scwidth, (tlheight + 6)*cfg['grid_rows']+22) root.setMinimumSize(tlwidth+scwidth, tlheight+scwidth) progbar.hide()