From aa0694196ac689f636767b81f598c57463a94207 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 14 Aug 2022 17:37:43 +0100 Subject: [PATCH] Applied minimum size to detached PaneWidgets --- src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.cpp index 5758b5ee..9baf5838 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.cpp @@ -41,6 +41,7 @@ namespace Bloom::Widgets this->state.detachedWindowState = DetachedWindowState(this->size(), this->pos()); } + this->setMinimumSize(1100, 600); this->state.attached = false; if (this->state.activated) { @@ -53,6 +54,7 @@ namespace Bloom::Widgets void PaneWidget::attach() { this->setWindowFlag(Qt::Window, false); + this->setMinimumSize(0, 0); this->state.attached = true; if (this->state.activated) {