Browse Source

REPORT-113978 数据中心窗口大小直接设置为主窗口的百分比

fbp-1.0
vito 4 months ago
parent
commit
c569948b46
  1. 7
      designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java

7
designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java

@ -53,9 +53,6 @@ public class JxTableDataNamePane extends NamePane {
return this.dialog;
}
private static final int MIN_WIDTH = 1000;
private static final int MIN_HEIGHT = 600;
/**
* 计算数据集窗口大小
* 80%90%
@ -64,9 +61,7 @@ public class JxTableDataNamePane extends NamePane {
*/
public static Dimension calculatePaneDimension() {
DesignerFrame parent = DesignerContext.getDesignerFrame();
int width = Math.max((int) (parent.getWidth() * 0.8), MIN_WIDTH);
int height = Math.max((int) (parent.getHeight() * 0.9), MIN_HEIGHT);
return new Dimension(width, height);
return new Dimension((int) (parent.getWidth() * 0.8), (int) (parent.getHeight() * 0.9));
}
}

Loading…
Cancel
Save