From e4b282818b982be216baa7caea15111d0606f1dc Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 28 Nov 2021 22:01:18 +0000 Subject: [PATCH] Fixed bug with byte item positions not being adjusted on resize of the memory inspection panel, due to the row count remaining the same --- .../HexViewerWidget/ByteItemGraphicsScene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp index f8889ae0..a9bcc11d 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/HexViewerWidget/ByteItemGraphicsScene.cpp @@ -87,8 +87,8 @@ void ByteItemGraphicsScene::adjustByteWidgets() { std::max(((rowCount * byteWidgetHeight) + margins.top() + margins.bottom()), this->parent->height()) ); - // Don't bother recalculating the byte item positions if the number of rows have not changed. - if (rowCount == this->byteItemsByRowIndex.size()) { + // Don't bother recalculating the byte item positions if the number of rows & columns have not changed. + if (rowCount == this->byteItemsByRowIndex.size() && rowCapacity == this->byteItemsByColumnIndex.size()) { return; }