Browse Source

REPORT-8709 and REPORT-8763

master
Mata.Li 7 years ago
parent
commit
024e2fb543
  1. 1
      designer-chart/src/com/fr/design/ChartTypeInterfaceManager.java
  2. 6
      designer-form/src/com/fr/design/mainframe/FormParaWidgetPane.java

1
designer-chart/src/com/fr/design/ChartTypeInterfaceManager.java

@ -116,7 +116,6 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr
private static Map<String, String> idAndPriorityMap = new HashMap<String, String>(); private static Map<String, String> idAndPriorityMap = new HashMap<String, String>();
public synchronized static ChartTypeInterfaceManager getInstance() { public synchronized static ChartTypeInterfaceManager getInstance() {
DesignModuleFactory.registerExtraWidgetOptions(initWidgetOption());
return classManager; return classManager;
} }

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

@ -317,10 +317,16 @@ public class FormParaWidgetPane extends JPanel {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
initWidgetTypePopUp(); initWidgetTypePopUp();
if(jSeparatorChart != null) {
widgetTypePopupMenu.show(FormParaWidgetPane.this,
(int) jSeparatorChart.getLocation().getX() + BORDER,
(int) jSeparatorChart.getLocation().getY());
}else{
widgetTypePopupMenu.show(FormParaWidgetPane.this, widgetTypePopupMenu.show(FormParaWidgetPane.this,
(int) jSeparatorLayout.getLocation().getX() + BORDER, (int) jSeparatorLayout.getLocation().getX() + BORDER,
(int) jSeparatorLayout.getLocation().getY()); (int) jSeparatorLayout.getLocation().getY());
} }
}
}); });
labelPane.add(chartPopUpButton, BorderLayout.EAST); labelPane.add(chartPopUpButton, BorderLayout.EAST);

Loading…
Cancel
Save