diff --git a/booru_viewer/gui/preview.py b/booru_viewer/gui/preview.py index fbe684d..2040160 100644 --- a/booru_viewer/gui/preview.py +++ b/booru_viewer/gui/preview.py @@ -262,8 +262,7 @@ class FullscreenPreview(QMainWindow): max_h = int(avail.height() * 0.85) # 15% margin top+bottom else: max_w = max_h = 9999 - min_w = int(max_w * 0.45) if aspect >= 1 else 0 # landscape minimum - w = max(min(self.width(), max_w), min_w) + w = min(self.width(), max_w) new_h = int(w / aspect) if new_h > max_h: new_h = max_h