diff --git a/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java b/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java index a09b61424a..61bd612ad6 100644 --- a/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java +++ b/designer_form/src/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java @@ -30,6 +30,8 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{ private int cornerSize = 15; private int noneSize = 0; + protected static final Dimension BORDER_PREFERRED_SIZE = new Dimension(250, 150); + public XBorderStyleWidgetCreator(Widget widget, Dimension initSize) { super(widget, initSize); } diff --git a/designer_form/src/com/fr/design/designer/creator/XChartEditor.java b/designer_form/src/com/fr/design/designer/creator/XChartEditor.java index fe05d9e8d9..49d193199e 100644 --- a/designer_form/src/com/fr/design/designer/creator/XChartEditor.java +++ b/designer_form/src/com/fr/design/designer/creator/XChartEditor.java @@ -187,7 +187,7 @@ public class XChartEditor extends XBorderStyleWidgetCreator { * @return 返回大小. */ public Dimension initEditorSize() { - return new Dimension(250, 150); + return BORDER_PREFERRED_SIZE; } /** diff --git a/designer_form/src/com/fr/design/designer/creator/XElementCase.java b/designer_form/src/com/fr/design/designer/creator/XElementCase.java index 041e9a2dc9..474acfbb91 100644 --- a/designer_form/src/com/fr/design/designer/creator/XElementCase.java +++ b/designer_form/src/com/fr/design/designer/creator/XElementCase.java @@ -182,7 +182,7 @@ public class XElementCase extends XBorderStyleWidgetCreator implements FormEleme * @return 尺寸 */ public Dimension initEditorSize() { - return new Dimension(250, 150); + return BORDER_PREFERRED_SIZE; } /**