Browse Source

垂直流式布局调整

persist/11.0-arabic
obo 4 months ago
parent
commit
d54e32cc06
  1. 3
      designer-base/src/main/java/com/fr/design/layout/VerticalFlowLayout.java

3
designer-base/src/main/java/com/fr/design/layout/VerticalFlowLayout.java

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

Loading…
Cancel
Save