aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/scrollcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/widgets/scrollcontainer.cpp')
-rw-r--r--gui/widgets/scrollcontainer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/widgets/scrollcontainer.cpp b/gui/widgets/scrollcontainer.cpp
index 1173b08279..eca0279c55 100644
--- a/gui/widgets/scrollcontainer.cpp
+++ b/gui/widgets/scrollcontainer.cpp
@@ -51,10 +51,7 @@ void ScrollContainerWidget::init() {
void ScrollContainerWidget::recalc() {
int scrollbarWidth = g_gui.xmlEval()->getVar("Globals.Scrollbar.Width", 0);
-
- //calculate _limitH - available height (boss's height - boss's "offset")
- int d = _boss->getChildY() - _boss->getAbsY();
- _limitH = _boss->getHeight() - d;
+ _limitH = _h;
//calculate virtual height
const int spacing = g_gui.xmlEval()->getVar("Global.Font.Height", 16); //on the bottom