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