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()) {
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;
}

Loading…
Cancel
Save