Browse Source

Pull request #2843: REPORT-43280 参数面板控件选不到

Merge in DESIGN/design from ~HADES/design:bugfix/10.0 to bugfix/10.0

* commit 'dbf47dc902b9cec2c60a00e3dcb7c3555003dfdd':
  REPORT-43280 参数面板控件选不到
bugfix/10.0
ju 4 years ago
parent
commit
b8c2de6063
  1. 12
      designer-form/src/main/java/com/fr/design/designer/beans/models/StateModel.java

12
designer-form/src/main/java/com/fr/design/designer/beans/models/StateModel.java

@ -301,12 +301,14 @@ public class StateModel {
Rectangle bounds = createCurrentBounds(x, y);
// 有参数面板时 要考虑下参数面板的高度影响
int yOffset = 0;
XLayoutContainer paramComponent = designer.getParaComponent();
if (paramComponent != null) {
yOffset = paramComponent.getHeight();
if (!designer.isFormParaDesigner()) {
int yOffset = 0;
XLayoutContainer paramComponent = designer.getParaComponent();
if (paramComponent != null) {
yOffset = paramComponent.getHeight();
}
bounds.y = Math.max(bounds.y - yOffset, 0);
}
bounds.y = Math.max(bounds.y - yOffset, 0);
if ((x != currentX) || (y != currentY)) {
ArrayList<XCreator> creators = getHotspotCreators(bounds, designer.getRootComponent());

Loading…
Cancel
Save