From 306dce73964600078954a2ebfdde082c45dd4f3d Mon Sep 17 00:00:00 2001 From: renekton Date: Wed, 25 Sep 2024 14:13:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/fr/design/widget/WidgetEventPane.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java b/designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java index 5f3bcbe1f9..0e639a9242 100644 --- a/designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java +++ b/designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java @@ -31,6 +31,10 @@ import java.lang.reflect.Constructor; public class WidgetEventPane extends UIListGroupControlPane { private static final Selection NO_SELECTION = new CellSelection(-1, -1, -1, -1); + private static final int WIDGET_BTN_GAP = 10; + + private static final int WIDGET_PANE_BTN_GAP = 4; + private Selection selection = NO_SELECTION; private ElementCasePane object; @@ -108,9 +112,9 @@ public class WidgetEventPane extends UIListGroupControlPane { @Override public int getVerticalGap() { if (getContentDBManiPane().get(0) instanceof SmartInsertDBManipulationInWidgetEventPane) { - return 10; + return WIDGET_BTN_GAP; } else { - return 4; + return WIDGET_PANE_BTN_GAP; } }