From 44339dd3815a820690c6eebb8e72d28892ae6260 Mon Sep 17 00:00:00 2001 From: kerry Date: Thu, 13 Aug 2020 10:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/mainframe/FormDesignerUI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java b/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java index 3767ccd87b..68ea5c2b87 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/FormDesignerUI.java @@ -409,8 +409,8 @@ public class FormDesignerUI extends ComponentUI { clipg = g.create( -designer.getHorizontalScaleValue(), -designer.getVerticalScaleValue() + designer.getParaHeight(), - parent.getSize().width + designer.getArea().getHorizontalValue(), - parent.getSize().height + designer.getArea().getVerticalValue()); + (int) ((parent.getSize().width + designer.getArea().getHorizontalValue()) / designer.getScale()), + (int) ((parent.getSize().height + designer.getArea().getVerticalValue()) / designer.getScale())); designer.paintContent(clipg); paintWatermark((Graphics2D) clipg); @@ -435,8 +435,8 @@ public class FormDesignerUI extends ComponentUI { Graphics clipg1; clipg1 = g.create(-designer.getHorizontalScaleValue(), -designer.getVerticalScaleValue(), - parent.getSize().width + designer.getArea().getHorizontalValue(), - designer.getParaHeight() + designer.getArea().getVerticalValue()); + (int) ((parent.getSize().width + designer.getArea().getHorizontalValue()) / designer.getScale()), + (int) ((designer.getParaHeight() + designer.getArea().getVerticalValue()) / designer.getScale())); designer.paintPara(clipg1); clipg1.dispose();