From a5d531b1a7a51fb5b9954caa236bd7df8ea6bd02 Mon Sep 17 00:00:00 2001 From: Nav Date: Fri, 25 Aug 2023 20:40:00 +0100 Subject: [PATCH] Fixed bug with vertical scrollbar detection in ChangeListPane widget --- .../SnapshotDiff/ChangeListPane/ChangeListPane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/ChangeListPane/ChangeListPane.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/ChangeListPane/ChangeListPane.cpp index b907ba76..627f8ea7 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/ChangeListPane/ChangeListPane.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/SnapshotManager/SnapshotDiff/ChangeListPane/ChangeListPane.cpp @@ -116,7 +116,7 @@ namespace Widgets void ChangeListPane::refreshChangeListViewSize() { this->changeListView->setFixedWidth( this->container->width() - ( - this->changeListView->verticalScrollBar()->isVisible() ? this->parentPanel->getHandleSize() : 0 + this->changeListView->verticalScrollBar()->maximum() > 0 ? this->parentPanel->getHandleSize() : 0 ) ); }