Browse Source

REPORT-71901 安装/禁用图表插件,图表工具栏更新异常

newui
方磊 2 years ago
parent
commit
b3c1017295
  1. 4
      designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java

4
designer-form/src/main/java/com/fr/design/mainframe/FormParaWidgetPane.java

@ -199,7 +199,9 @@ public class FormParaWidgetPane extends JPanel {
JPanel componentsPara = new JPanel(new FlowLayout(FlowLayout.LEFT));
WidgetOption[] chartOptions = loadChartOptions();
for (WidgetOption chartOption : chartOptions) {
componentsPara.add(new ToolBarButton(chartOption));
ToolBarButton button = new ToolBarButton(chartOption);
button.setPreferredSize(new Dimension(widgetButtonWidth, widgetButtonHeight));
componentsPara.add(button);
}
int x = COMMON_CHAR_NUM * (widgetButtonWidth + smallGAP);
int y = (int) Math.ceil(chartOptions.length / ((double) COMMON_CHAR_NUM)) * (widgetButtonHeight + smallGAP);

Loading…
Cancel
Save