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