Browse Source

定义常量

fbp/release
renekton 2 months ago
parent
commit
306dce7396
  1. 8
      designer-realize/src/main/java/com/fr/design/widget/WidgetEventPane.java

8
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;
}
}

Loading…
Cancel
Save