Used size policy for the resizing of the target registers scroll area, as opposed to a manual resize in resizeEvent()

This commit is contained in:
Nav
2021-10-11 22:00:57 +01:00
parent 3318403970
commit 1e3f76f040
2 changed files with 5 additions and 12 deletions

View File

@@ -217,10 +217,7 @@ void TargetRegistersPaneWidget::resizeEvent(QResizeEvent* event) {
* In order to avoid the panel resize handle overlapping the scroll bar handle, we reduce the size of
* the scroll area.
*/
this->itemScrollArea->setFixedSize(
width - this->parent->getHandleSize(),
parentSize.height() - this->toolBar->height() - this->searchInput->height() - 5
);
this->itemScrollArea->setFixedWidth(width - this->parent->getHandleSize());
}
void TargetRegistersPaneWidget::postActivate() {