Browse Source

REPORT-8709 and REPORT-8763

master
Mata.Li 6 years ago
parent
commit
024e2fb543
  1. 1
      designer-chart/src/com/fr/design/ChartTypeInterfaceManager.java
  2. 12
      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;
} }

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

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

Loading…
Cancel
Save