From 6c16dc1012bd59482474fa1a9c976e5500b2c680 Mon Sep 17 00:00:00 2001 From: Nav Date: Thu, 14 Jul 2022 20:48:56 +0100 Subject: [PATCH] Removed hardcoded minimum size on bottom panel. Replaced with a '25% of the current window size'. --- src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp | 2 ++ .../UserInterfaces/InsightWindow/UiFiles/InsightWindow.ui | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp b/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp index ae64a32d..1e2f4c70 100644 --- a/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp @@ -678,6 +678,8 @@ namespace Bloom (containerSize.height() / 2) - this->mainMenuBar->height() - this->bottomMenuBar->height() - 20 ) ); + + this->bottomPanel->setMinimumResize(static_cast(containerSize.height() * 0.25)); } void InsightWindow::adjustMinimumSize() { diff --git a/src/Insight/UserInterfaces/InsightWindow/UiFiles/InsightWindow.ui b/src/Insight/UserInterfaces/InsightWindow/UiFiles/InsightWindow.ui index 64f38e0b..b18739a5 100644 --- a/src/Insight/UserInterfaces/InsightWindow/UiFiles/InsightWindow.ui +++ b/src/Insight/UserInterfaces/InsightWindow/UiFiles/InsightWindow.ui @@ -252,9 +252,6 @@ PanelWidgetType::BOTTOM - - 400 - 10