✏️ Wrong scrollbar value used to set ScrollAmount of horizontal scrollbar of ScrollablePanel

0.8
Bruno Van de Velde 2017-09-21 16:34:58 +02:00
parent 343ac4e2ef
commit 203d4b070c
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ namespace tgui
m_horizontalScrollbar.setPosition(getChildWidgetsOffset().x, getChildWidgetsOffset().y + getInnerSize().y - m_horizontalScrollbar.getSize().y);
m_verticalScrollbar.setScrollAmount(static_cast<unsigned int>(std::ceil((m_verticalScrollbar.getMaximum() - m_verticalScrollbar.getLowValue()) / 50.f)));
m_horizontalScrollbar.setScrollAmount(static_cast<unsigned int>(std::ceil((m_verticalScrollbar.getMaximum() - m_verticalScrollbar.getLowValue()) / 50.f)));
m_horizontalScrollbar.setScrollAmount(static_cast<unsigned int>(std::ceil((m_horizontalScrollbar.getMaximum() - m_horizontalScrollbar.getLowValue()) / 50.f)));
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////