Browse Source

REPORT-4296 frm控件栏无法正常显示图标

master
plough 7 years ago
parent
commit
0c79b53163
  1. 4
      designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.java

4
designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.java

@ -286,7 +286,9 @@ public class FormParaWidgetPane extends JPanel {
private int calculateWidgetWindowRowNum() {
//向上取整
int rowNum = (int) Math.ceil((double) predifinedwidgeList.size() / (double) preWidgetShowMaxNum);
int eastRowNum = (int) Math.ceil((double) predifinedwidgeList.size() / (double) preWidgetShowMaxNum);
int westRowNum = (int) Math.ceil((double) loadWidgetOptions().length / (double) commonWidgetNum);
int rowNum = Math.max(eastRowNum, westRowNum);
rowNum = Math.max(rowNum, 2);
rowNum = Math.min(rowNum, preWidgetShowMaxRow);
return rowNum;

Loading…
Cancel
Save