OSDN Git Service

Fixed alignment.
authorNathanSweet <nathan.sweet@gmail.com>
Mon, 14 Oct 2013 19:39:08 +0000 (21:39 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Mon, 14 Oct 2013 19:39:08 +0000 (21:39 +0200)
gdx/src/com/badlogic/gdx/scenes/scene2d/ui/HorizontalGroup.java

index 675ae58..bda5a35 100644 (file)
@@ -92,9 +92,9 @@ public class HorizontalGroup extends WidgetGroup {
                                height = child.getHeight();
                        }
                        float y;
-                       if ((alignment & Align.left) != 0)
+                       if ((alignment & Align.bottom) != 0)
                                y = 0;
-                       else if ((alignment & Align.right) != 0)
+                       else if ((alignment & Align.top) != 0)
                                y = groupHeight - height;
                        else
                                y = (groupHeight - height) / 2;