Browse Source

REPORT-1222 - 表单界面图表浮动面板不随主窗口变化位置

master
vito 8 years ago
parent
commit
96f01dc0b7
  1. 2
      designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.java

2
designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.java

@ -200,7 +200,6 @@ public class FormParaWidgetPane extends JPanel {
chartPopUpButton.addMouseListener(new MouseAdapter() { chartPopUpButton.addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
if (chartTypeWindow == null) {
JPanel componentsPara = new JPanel(new FlowLayout(FlowLayout.LEFT)); JPanel componentsPara = new JPanel(new FlowLayout(FlowLayout.LEFT));
WidgetOption[] chartOptions = loadChartOptions(); WidgetOption[] chartOptions = loadChartOptions();
for (WidgetOption chartOption : chartOptions) { for (WidgetOption chartOption : chartOptions) {
@ -212,7 +211,6 @@ public class FormParaWidgetPane extends JPanel {
chartTypeWindow = new PopUpWindow(componentsPara, Inter.getLocText("FR-Designer-Form-ToolBar_Chart")); chartTypeWindow = new PopUpWindow(componentsPara, Inter.getLocText("FR-Designer-Form-ToolBar_Chart"));
chartTypeWindow.setLocation((int) jSeparatorLayout.getLocationOnScreen().getX() + 1, (int) jSeparatorLayout.getLocationOnScreen().getY()); chartTypeWindow.setLocation((int) jSeparatorLayout.getLocationOnScreen().getX() + 1, (int) jSeparatorLayout.getLocationOnScreen().getY());
chartTypeWindow.setSize(chartTypeWindow.getPreferredSize()); chartTypeWindow.setSize(chartTypeWindow.getPreferredSize());
}
chartTypeWindow.setVisible(true); chartTypeWindow.setVisible(true);
} }
}); });

Loading…
Cancel
Save