Преглед изворни кода

Merge pull request #1162 from Dutch-devil/master

Horizontal center align with vertical layout
Sean Taylor пре 12 година
родитељ
комит
f1a3255160
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      gameplay/src/VerticalLayout.cpp

+ 1 - 1
gameplay/src/VerticalLayout.cpp

@@ -70,7 +70,7 @@ void VerticalLayout::update(const Container* container, const Vector2& offset)
 
 
         yPosition += margin.top;
         yPosition += margin.top;
 
 
-        control->setPosition(margin.left, yPosition);
+        control->setPosition(bounds.left() + margin.left, yPosition);
         control->update(container, offset);
         control->update(container, offset);
 
 
         yPosition += bounds.height + margin.bottom;
         yPosition += bounds.height + margin.bottom;