From 19625f4e2a43c0589323bb8e725faf5b4047cbf0 Mon Sep 17 00:00:00 2001
From: offhub <6871698+offhub@users.noreply.github.com>
Date: Thu, 3 Oct 2024 23:11:44 +0300
Subject: [PATCH] fix layout 2
Improves the dialog layout for the BoxImageWindow.
---
SandboxiePlus/SandMan/Forms/BoxImageWindow.ui | 4 ++--
SandboxiePlus/SandMan/Windows/BoxImageWindow.cpp | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/SandboxiePlus/SandMan/Forms/BoxImageWindow.ui b/SandboxiePlus/SandMan/Forms/BoxImageWindow.ui
index ef82e16d..3cb9e804 100644
--- a/SandboxiePlus/SandMan/Forms/BoxImageWindow.ui
+++ b/SandboxiePlus/SandMan/Forms/BoxImageWindow.ui
@@ -6,7 +6,7 @@
0
0
- 500
+ 520
307
@@ -18,7 +18,7 @@
- 500
+ 520
0
diff --git a/SandboxiePlus/SandMan/Windows/BoxImageWindow.cpp b/SandboxiePlus/SandMan/Windows/BoxImageWindow.cpp
index b72e92a0..d3de7908 100644
--- a/SandboxiePlus/SandMan/Windows/BoxImageWindow.cpp
+++ b/SandboxiePlus/SandMan/Windows/BoxImageWindow.cpp
@@ -99,6 +99,9 @@ CBoxImageWindow::CBoxImageWindow(EAction Action, QWidget *parent)
}
//restoreGeometry(theConf->GetBlob("BoxImageWindow/Window_Geometry"));
+
+ // Adjust the size of the dialog
+ this->adjustSize();
}
void CBoxImageWindow::SetForce(bool force)