Browse Source

修改下instanceof,改成acceptType好一些

master
zhouping 8 years ago
parent
commit
b930df7689
  1. 2
      designer_form/src/com/fr/design/designer/beans/location/Inner.java

2
designer_form/src/com/fr/design/designer/beans/location/Inner.java

@ -121,7 +121,7 @@ public class Inner extends AccessDirection {
}
};
//判断当前操作的是不是参数面板,要特殊处理
boolean isParameterLayout = (designer.getSelectionModel().getSelection().getSelectedCreator().getParent()) instanceof XWParameterLayout;
boolean isParameterLayout = ((XCreator)(designer.getSelectionModel().getSelection().getSelectedCreator().getParent())).acceptType(XWParameterLayout.class);
point.setLocation(MoveUtils.sorption(point.x, point.y, current_bounds.width, current_bounds.height, rd, isParameterLayout));
}

Loading…
Cancel
Save