Browse Source

重构垂直流式布局

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

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

@ -397,7 +397,7 @@ public class VerticalFlowLayout implements LayoutManager, java.io.Serializable {
if (ltr) {
m.setLocation(isAlignLeft ? x : newX, y);
} else {
m.setLocation(isAlignLeft ? x : newX, target.getHeight() - y - m.getHeight());
m.setLocation(isAlignLeft ? target.getWidth() - m.getWidth() - hgap : newX, target.getHeight() - y - m.getHeight());
}
y += m.getHeight() + vgap;
}

Loading…
Cancel
Save