Browse Source

Merge pull request #7537 in DESIGN/design from final/11.0 to persist/11.0

* commit '7b8ffb40ec054a3c01622efc7f7f168a447901b9':
  REPORT-65613 【主题边框】单元格样式修改文本和对齐样式,会导致边框配置丢失
fix-lag
superman 3 years ago
parent
commit
5bf536b11d
  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