Browse Source

CHART-20568 [产品验收]设计器预览页面图表组件鬼畜

【问题原因】
刷新页面触发了进入编辑模式的图表不停截图重绘,目前修复方式是与撤销回退的
一样的处理方式,退出图表编辑状态

【改动思路】
同上
fix-lag
Starryi 3 years ago
parent
commit
02b949608e
  1. 12
      designer-form/src/main/java/com/fr/design/mainframe/JForm.java

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

@ -1203,10 +1203,20 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F
formDesign.refreshRoot(); formDesign.refreshRoot();
// 刷新界面后恢复原来的尺寸 // 刷新界面后恢复原来的尺寸
formDesign.getArea().setAreaSize(areaSize, horizontalValue, verticalValue, widthValue, heightValue, slideValue); formDesign.getArea().setAreaSize(areaSize, horizontalValue, verticalValue, widthValue, heightValue, slideValue);
FormHierarchyTreePane.getInstance().refreshRoot();
if (this.index != FORM_TAB) { if (this.index != FORM_TAB) {
refreshToolArea(); refreshToolArea();
} else {
// CHART-20568: 当图表块处于编辑状态时,任何界面内容的修改都会导致其进行截图操作,进而引起设计器界面再次重绘,导致死循环,因而需要停止编辑 恢复浮层展示
TreePath[] treePaths = FormHierarchyTreePane.getInstance(formDesign).getComponentTree().getSelectedTreePath();
if (treePaths != null) {
for (TreePath path : treePaths) {
if (path != null) {
formDesign.stopEditing(path);
}
}
}
} }
FormHierarchyTreePane.getInstance().refreshRoot();
super.setTemplateTheme(newTheme, compatible); super.setTemplateTheme(newTheme, compatible);
} }

Loading…
Cancel
Save