Fixed bug with byte item positions not being adjusted on resize of the memory inspection panel, due to the row count remaining the same

This commit is contained in:
Nav
2021-11-28 22:01:18 +00:00
parent 2c35cd7a29
commit e4b282818b

View File

@@ -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;
}