Browse Source

REPORT-36619 报表设计界面拖选无法选中拖选区域

bugfix/10.0
hades 4 years ago
parent
commit
1304782c2e
  1. 7
      designer-form/src/main/java/com/fr/design/designer/beans/models/StateModel.java

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

@ -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());

Loading…
Cancel
Save