Browse Source

Merge pull request #1172 in BA/design from ~PLOUGH/design:release/8.0 to release/8.0

* commit '0c79b531631a51954882f5410faf20aab89f5a46':
  REPORT-4296 frm控件栏无法正常显示图标
  无JIRA任务,不影响模板正常保存
master
superman 7 years ago
parent
commit
22e4f0b07c
  1. 5
      designer_base/src/com/fr/design/mainframe/JTemplate.java
  2. 4
      designer_form/src/com/fr/design/mainframe/FormParaWidgetPane.java

5
designer_base/src/com/fr/design/mainframe/JTemplate.java

@ -121,7 +121,10 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex
return;
}
long saveTime = System.currentTimeMillis(); // 保存模板的时间点
tic.collectInfo(template, this, openTime, saveTime);
try {
tic.collectInfo(template, this, openTime, saveTime);
} catch (Throwable th) { // 不管收集过程中出现任何异常,都不应该影响模版保存
}
openTime = saveTime; // 更新 openTime,准备下一次计算
}

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