From 7ba097df1c2067a3898d5289dd350ee2d45336df Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Mon, 22 Jun 2026 12:24:47 +0200 Subject: [PATCH] viewer: looser minimum heights so the bottom docks resize freely Lower the dataset-info chart and jobs-table minimum heights (200 -> 80, table 60) so the bottom dock area can be dragged smaller; the comfortable default size is still set via resizeDocks. Co-Authored-By: Claude Opus 4.8 --- viewer/JFJochViewerDatasetInfo.cpp | 2 +- viewer/windows/JFJochProcessingJobsWindow.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/viewer/JFJochViewerDatasetInfo.cpp b/viewer/JFJochViewerDatasetInfo.cpp index cfb960d2..4adbda9a 100644 --- a/viewer/JFJochViewerDatasetInfo.cpp +++ b/viewer/JFJochViewerDatasetInfo.cpp @@ -42,7 +42,7 @@ JFJochViewerDatasetInfo::JFJochViewerDatasetInfo(QWidget *parent) : QWidget(pare stack = new QStackedWidget(this); chart_view = new JFJochDatasetInfoChartView(this); - chart_view->setMinimumHeight(200); // keep the plot readable even when the dock is small + chart_view->setMinimumHeight(80); // low floor so the bottom dock resizes freely (default is set via resizeDocks) grid_scan_image = new JFJochGridScanImage(this); stack->addWidget(chart_view); diff --git a/viewer/windows/JFJochProcessingJobsWindow.cpp b/viewer/windows/JFJochProcessingJobsWindow.cpp index b38e1a80..ca6dcb72 100644 --- a/viewer/windows/JFJochProcessingJobsWindow.cpp +++ b/viewer/windows/JFJochProcessingJobsWindow.cpp @@ -57,6 +57,7 @@ JFJochProcessingJobsWindow::JFJochProcessingJobsWindow(JFJochImageReadingWorker toolbar_->addAction("Show original", this, &JFJochProcessingJobsWindow::showOriginal); table_ = new QTableWidget(0, COL_COUNT, this); + table_->setMinimumHeight(60); // let the bottom dock shrink freely table_->setHorizontalHeaderLabels({"Name", "Started", "Mode", "Images", "Status", "Index %", "Unit cell"}); table_->horizontalHeader()->setStretchLastSection(true); table_->setSelectionBehavior(QAbstractItemView::SelectRows);