Browse Source

Pull request #5830: Merge branch 'release/10.0' into bugfix/10.0

Merge in DESIGN/design from ~STARRYI/design:bugfix/10.0 to bugfix/10.0

* commit '21c34f7238eb494633e26c1788125f3954ac1749':
  REPORT-58252 报表块单元格行列标识去掉后的弥补方案
  CHART-20568 [产品验收]设计器预览页面图表组件鬼畜 & CHART-20627 图表块组件,鼠标双击,会出现图形重影
bugfix/10.0
ju|剧浩宇 3 years ago
parent
commit
a8ecdc7974
  1. 7
      designer-form/src/main/java/com/fr/design/designer/creator/XChartEditor.java

7
designer-form/src/main/java/com/fr/design/designer/creator/XChartEditor.java

@ -232,7 +232,14 @@ public class XChartEditor extends XBorderStyleWidgetCreator {
Dimension size = getSize();
PaddingMargin margin = toData().getMargin();
if (!isEditing) {
// CHART-20568 & CHART-20627
// EditingMouseListener#startEditing会将图表的ChartComponent放入FormDesigner, 作为编辑中的ChartComponent来显示,
// 同时这里又在下层绘制了一遍ChartComponent,导致图表进入编辑状态,会出现两个重叠的ChartComponent。
// 考虑到编辑中,FormDesigner中的ChartComponent位于上层,下层的ChartComponent实际上没什么用,所以可以不用绘制
// 下层的ChartComponent
designerEditor.paintEditor(g, size, margin);
}
if (coverPanel != null) {
int horizonMargin = margin != null ? margin.getLeft() + margin.getRight() : 0;

Loading…
Cancel
Save