Browse Source

REPORT-90581 设计器添加事件菜单没有充满,存在留白 格式化

feature/x
Destiny.Lin 2 years ago
parent
commit
704028d58a
  1. 2
      designer-base/src/main/java/com/fr/design/gui/controlpane/UIListGroupControlPane.java

2
designer-base/src/main/java/com/fr/design/gui/controlpane/UIListGroupControlPane.java

@ -331,7 +331,7 @@ public abstract class UIListGroupControlPane extends UIControlPane implements Li
UIList uiList = wrapperPane.getNameEdList();
//contentPane是外层的Panel,如果不进行判断的话宽度就可能会小于contentPanel,右侧会有空隙
//所以需要判断一下,如果外层比较宽就取外层的宽度,防止空隙出现
uiList.setFixedCellWidth(Math.max(width, contentPane == null? 0 : contentPane.getWidth()));
uiList.setFixedCellWidth(Math.max(width, contentPane == null ? 0 : contentPane.getWidth()));
}
}

Loading…
Cancel
Save