From 49caaf77a1aa5f2668a1b21cc2722fb536558929 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Tue, 21 Jun 2016 14:36:21 +0600 Subject: GUI: Add ScrollContainer --- gui/widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/widget.cpp') diff --git a/gui/widget.cpp b/gui/widget.cpp index 2e07fa9aea..cc97988352 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -280,8 +280,8 @@ void StaticTextWidget::setAlign(Graphics::TextAlign align) { void StaticTextWidget::drawWidget() { - int px = _boss->getChildX(); - int py = _boss->getChildY(); + int px = _boss->getAbsX(); + int py = _boss->getAbsY(); g_gui.theme()->drawTextClip( Common::Rect(_x, _y, _x+_w, _y+_h), Common::Rect(px, py, px + _boss->getWidth(), py + _boss->getHeight()), -- cgit v1.2.3