Fixed bug with vertical scrollbar detection in ChangeListPane widget

This commit is contained in:
Nav
2023-08-25 20:40:00 +01:00
parent 9baecc820b
commit a5d531b1a7

View File

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