|
|
|
@ -381,7 +381,6 @@ public class VerticalFlowLayout implements LayoutManager, java.io.Serializable {
|
|
|
|
|
synchronized (target.getTreeLock()) { |
|
|
|
|
switch (newAlign) { |
|
|
|
|
case TOP: |
|
|
|
|
y += ltr ? 0 : height; |
|
|
|
|
break; |
|
|
|
|
case CENTER: |
|
|
|
|
y += height / 2; |
|
|
|
@ -397,7 +396,7 @@ public class VerticalFlowLayout implements LayoutManager, java.io.Serializable {
|
|
|
|
|
if (ltr) { |
|
|
|
|
m.setLocation(isAlignLeft ? x : newX, y); |
|
|
|
|
} else { |
|
|
|
|
m.setLocation(isAlignLeft ? target.getWidth() - m.getWidth() - x : newX, target.getHeight() - y - m.getHeight() / 2); |
|
|
|
|
m.setLocation(isAlignLeft ? target.getWidth() - m.getWidth() - x : newX, y); |
|
|
|
|
} |
|
|
|
|
y += m.getHeight() + vgap; |
|
|
|
|
} |
|
|
|
|