Browse Source

REPORT-58403 【主题切换】组件右侧边框标题部分,间距有点大

【问题原因】
只在后续的容器上加间距

【改动思路】
同上
persist/11.0
Starryi 3 years ago
parent
commit
27e748f99f
  1. 2
      designer-base/src/main/java/com/fr/design/gui/style/ComponentTitleStylePane.java

2
designer-base/src/main/java/com/fr/design/gui/style/ComponentTitleStylePane.java

@ -307,7 +307,7 @@ public class ComponentTitleStylePane extends AbstractBorderPackerPane {
if (component != null) { if (component != null) {
container.add(component, BorderLayout.NORTH); container.add(component, BorderLayout.NORTH);
JPanel nextContainer = new JPanel(FRGUIPaneFactory.createBorderLayout()); JPanel nextContainer = new JPanel(FRGUIPaneFactory.createBorderLayout());
component.setBorder(BorderFactory.createEmptyBorder(IntervalConstants.INTERVAL_L1, 0, 0, 0)); nextContainer.setBorder(BorderFactory.createEmptyBorder(IntervalConstants.INTERVAL_L1, 0, 0, 0));
container.add(nextContainer, BorderLayout.CENTER); container.add(nextContainer, BorderLayout.CENTER);
container = nextContainer; container = nextContainer;
} }

Loading…
Cancel
Save