Browse Source

REPORT-65613 【主题边框】单元格样式修改文本和对齐样式,会导致边框配置丢失

【问题原因】
只有当前面板是边框面板的时候才会保存边框数据,所以在边框面板没有被选中的时候,就不会保存数据了

【改动思路】
遍历主题单元格样式编辑面板中的所有BasicPane,保存其中的数据
new-design
Starryi 3 years ago
parent
commit
51dad67c88
  1. 12
      designer-base/src/main/java/com/fr/design/mainframe/theme/edit/cell/CellStyleEditPane.java

12
designer-base/src/main/java/com/fr/design/mainframe/theme/edit/cell/CellStyleEditPane.java

@ -88,13 +88,13 @@ public class CellStyleEditPane extends MultiTabPane<ThemedCellStyle> {
@Override
public ThemedCellStyle updateBean() {
AbstractBasicStylePane basicStylePane = (AbstractBasicStylePane) paneList.get(tabPane.getSelectedIndex());
Style style = basicStylePane.update(this.cellStyle.getStyle());
Style style = this.cellStyle.getStyle();
CellBorderStyle borderStyle = createDefaultBorderStyleFromStyle(style);
if (ThemedFeatureController.isCellStyleSupportInnerBorder() && basicStylePane instanceof BorderPane) {
borderStyle = ((BorderPane) basicStylePane).update();
for (BasicPane basicPane : paneList) {
style = ((AbstractBasicStylePane) basicPane).update(style);
if (ThemedFeatureController.isCellStyleSupportInnerBorder() && basicPane instanceof BorderPane) {
borderStyle = ((BorderPane) basicPane).update();
}
}
this.cellStyle.setStyle(style);

Loading…
Cancel
Save