Browse Source

代码调整

research/11.0
kerry 3 years ago
parent
commit
ac008319d7
  1. 7
      designer-form/src/main/java/com/fr/design/mainframe/FormArea.java

7
designer-form/src/main/java/com/fr/design/mainframe/FormArea.java

@ -211,10 +211,15 @@ public class FormArea extends JComponent implements ScrollRulerComponent {
GUICoreUtils.showPopupMenu(popupMenu, fixLayoutSwitchButton, 0, -59); GUICoreUtils.showPopupMenu(popupMenu, fixLayoutSwitchButton, 0, -59);
} }
}); });
button.setVisible(((WFitLayout) designer.getRootComponent().toData()).getBodyLayoutType() != WBodyLayoutType.ABSOLUTE); button.setVisible(!isAbsoluteBodyLayout());
return button; return button;
} }
private boolean isAbsoluteBodyLayout() {
return ((WFitLayout) designer.getRootComponent().toData()).getBodyLayoutType() == WBodyLayoutType.ABSOLUTE;
}
/** /**
* 增加表单的页面大小控制界面包括手动修改和滑块拖动 * 增加表单的页面大小控制界面包括手动修改和滑块拖动

Loading…
Cancel
Save