From 392f35a96d1c9af7a90f5cf4952c9ea727685822 Mon Sep 17 00:00:00 2001
From: Syping <schiedelrafael@keppe.org>
Date: Wed, 10 May 2023 18:02:07 +0200
Subject: [PATCH] PictureDialog: fix window height

---
 src/PictureDialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PictureDialog.cpp b/src/PictureDialog.cpp
index 7b83211..8821cde 100644
--- a/src/PictureDialog.cpp
+++ b/src/PictureDialog.cpp
@@ -232,7 +232,7 @@ void PictureDialog::addPreviousNextButtons()
 
 void PictureDialog::adaptDialogSize()
 {
-    int newDialogHeight = (960 * AppEnv::screenRatio()) + ui->jsonFrame->heightForWidth(width());
+    int newDialogHeight = (536 * AppEnv::screenRatio()) + ui->jsonFrame->heightForWidth(width());
     if (naviEnabled)
         newDialogHeight = newDialogHeight + layout()->menuBar()->height();
     const QSize windowSize(width(), newDialogHeight);