From c569948b46dca24d6a4596f2b020addd77d8019f Mon Sep 17 00:00:00 2001 From: vito Date: Mon, 19 Aug 2024 11:59:27 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-113978=20=E6=95=B0=E6=8D=AE=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E7=AA=97=E5=8F=A3=E5=A4=A7=E5=B0=8F=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=E4=B8=BB=E7=AA=97=E5=8F=A3=E7=9A=84?= =?UTF-8?q?=E7=99=BE=E5=88=86=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/tabledata/datacenter/JxTableDataNamePane.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java b/designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java index 47e85bfff3..dfb0c2f31d 100644 --- a/designer-base/src/main/java/com/fr/design/data/tabledata/datacenter/JxTableDataNamePane.java +++ b/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)); } }