From 203d4b070cfb3a922e71730a1bbca4c48ef97f33 Mon Sep 17 00:00:00 2001 From: Bruno Van de Velde Date: Thu, 21 Sep 2017 16:34:58 +0200 Subject: [PATCH] :pencil2: Wrong scrollbar value used to set ScrollAmount of horizontal scrollbar of ScrollablePanel --- src/TGUI/Widgets/ScrollablePanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TGUI/Widgets/ScrollablePanel.cpp b/src/TGUI/Widgets/ScrollablePanel.cpp index 20a3f4b1..4e722c61 100644 --- a/src/TGUI/Widgets/ScrollablePanel.cpp +++ b/src/TGUI/Widgets/ScrollablePanel.cpp @@ -353,7 +353,7 @@ namespace tgui m_horizontalScrollbar.setPosition(getChildWidgetsOffset().x, getChildWidgetsOffset().y + getInnerSize().y - m_horizontalScrollbar.getSize().y); m_verticalScrollbar.setScrollAmount(static_cast(std::ceil((m_verticalScrollbar.getMaximum() - m_verticalScrollbar.getLowValue()) / 50.f))); - m_horizontalScrollbar.setScrollAmount(static_cast(std::ceil((m_verticalScrollbar.getMaximum() - m_verticalScrollbar.getLowValue()) / 50.f))); + m_horizontalScrollbar.setScrollAmount(static_cast(std::ceil((m_horizontalScrollbar.getMaximum() - m_horizontalScrollbar.getLowValue()) / 50.f))); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////