Browse Source

REPORT-53175 - 【10.0.18】组件背景分离为标题/背景/边框

【问题原因】
设计器报表块预览优化:不显示行列头,否则当报表块较小时就无法预览到表格内容
【改动思路】
zheng-1641779399395
Starryi 3 years ago
parent
commit
cc5eee3b51
  1. 6
      designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java

6
designer-realize/src/main/java/com/fr/design/mainframe/form/FormElementCaseDesigner.java

@ -30,6 +30,7 @@ import com.fr.design.selection.Selectedable;
import com.fr.design.selection.SelectionListener; import com.fr.design.selection.SelectionListener;
import com.fr.form.FormElementCaseProvider; import com.fr.form.FormElementCaseProvider;
import com.fr.form.main.Form; import com.fr.form.main.Form;
import com.fr.grid.Grid;
import com.fr.grid.selection.CellSelection; import com.fr.grid.selection.CellSelection;
import com.fr.grid.selection.Selection; import com.fr.grid.selection.Selection;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -138,7 +139,10 @@ public class FormElementCaseDesigner
g.fillRect(0, 0, size.width, size.height); g.fillRect(0, 0, size.width, size.height);
g.setColor(oldColor); g.setColor(oldColor);
this.elementCasePane.paintComponents(g); Grid grid = this.elementCasePane != null ? this.elementCasePane.getGrid() : null;
if (grid != null) {
grid.paintAll(g);
}
} catch (Exception e) { } catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e); FineLoggerFactory.getLogger().error(e.getMessage(), e);

Loading…
Cancel
Save