summaryrefslogtreecommitdiffstats
path: root/gui/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/slider.cpp')
-rw-r--r--gui/slider.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/slider.cpp b/gui/slider.cpp
index a3884474b..6ee2024d5 100644
--- a/gui/slider.cpp
+++ b/gui/slider.cpp
@@ -80,6 +80,7 @@ GUISlider::GUISlider(xml_node<>* node) : GUIObject(node)
sSliderLabel->GetCurrentBounds(w, h);
int sTextY = mRenderY + ((mRenderH - h) / 2);
sSliderLabel->SetRenderPos(sTextX, sTextY);
+ sSliderLabel->SetMaxWidth(mRenderW);
}
if (sTouch && sTouch->GetResource())
{