From 206ac2196ad0be61c8f4fe95b3d5a89c794dfedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levy=2EXie-=E8=A7=A3=E5=AE=89=E6=A3=AE?= Date: Mon, 19 Aug 2024 15:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=20=E6=8F=90=E4=BE=9B=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=9A=84=E5=B0=BA=E5=AF=B8=E8=AE=BE=E7=BD=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/dialog/BasicDialog.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java b/designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java index 8eb0594415..f0f651c6bb 100644 --- a/designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java +++ b/designer-base/src/main/java/com/fr/design/dialog/BasicDialog.java @@ -52,6 +52,15 @@ public abstract class BasicDialog extends UIDialog { super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height)); } + /** + * 设置对话框大小,本方法不进行主动缩放 + * + * @param d 对话框尺寸 + */ + protected void setBasicDialogSizeNoScale(Dimension d) { + super.setSize(FineUIScale.scale(d.width), FineUIScale.scale(d.height)); + } + /** * 设置对话框大小,方法内已进行dpi适配,传参无需考虑dpi适配 * @@ -62,6 +71,16 @@ public abstract class BasicDialog extends UIDialog { setBasicDialogSize(new Dimension(w, h)); } + /** + * 设置对话框大小,本方法不进行主动缩放 + * + * @param w 宽度 + * @param h 高度 + */ + protected void setBasicDialogSizeNoScale(int w, int h) { + setBasicDialogSizeNoScale(new Dimension(w, h)); + } + @Override public void setSize(Dimension d) { throw new UnsupportedOperationException();