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