Skip to content

Commit

Permalink
Traktor: Ensure scrollbars are reset in LogList when they become invi…
Browse files Browse the repository at this point in the history
…sible.
  • Loading branch information
apistol78 committed May 16, 2024
1 parent ecb5192 commit 971bd92
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions code/Ui/LogList/LogList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,23 @@ void LogList::updateScrollBar()
m_scrollBarH->setVisible(true);
}
else
{
m_scrollBarH->setPosition(0);
m_scrollBarH->setVisible(false);
}
m_scrollBarH->update();

m_scrollBarV->setRange(logCount);
m_scrollBarV->setPage(pageCount);
m_scrollBarV->setVisible(logCount > pageCount);
if (logCount > pageCount)
{
m_scrollBarV->setRange(logCount);
m_scrollBarV->setPage(pageCount);
m_scrollBarV->setVisible(true);
}
else
{
m_scrollBarV->setPosition(0);
m_scrollBarV->setVisible(false);
}
m_scrollBarV->update();
}

Expand Down

0 comments on commit 971bd92

Please sign in to comment.