Automatically resize the Insight window upon the user opening the bottom panel, to ensure there is adequate space
This commit is contained in:
@@ -254,6 +254,14 @@ void InsightWindow::toggleRamInspectionPane() {
|
|||||||
this->ramInspectionPane->activate();
|
this->ramInspectionPane->activate();
|
||||||
this->bottomPanel->show();
|
this->bottomPanel->show();
|
||||||
this->ramInspectionButton->setChecked(true);
|
this->ramInspectionButton->setChecked(true);
|
||||||
|
|
||||||
|
if (this->targetPackageWidget != nullptr) {
|
||||||
|
this->setMinimumHeight(std::max(
|
||||||
|
this->minimumHeight(),
|
||||||
|
this->targetPackageWidget->height() + this->header->height() + this->footer->height()
|
||||||
|
+ this->menuBar()->height() + this->bottomPanel->getMinimumResize() + 30
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -271,6 +279,14 @@ void InsightWindow::toggleEepromInspectionPane() {
|
|||||||
this->eepromInspectionPane->activate();
|
this->eepromInspectionPane->activate();
|
||||||
this->bottomPanel->show();
|
this->bottomPanel->show();
|
||||||
this->eepromInspectionButton->setChecked(true);
|
this->eepromInspectionButton->setChecked(true);
|
||||||
|
|
||||||
|
if (this->targetPackageWidget != nullptr) {
|
||||||
|
this->setMinimumHeight(std::max(
|
||||||
|
this->minimumHeight(),
|
||||||
|
this->targetPackageWidget->height() + this->header->height() + this->footer->height()
|
||||||
|
+ this->menuBar()->height() + this->bottomPanel->getMinimumResize() + 30
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user