Browse Source

REPORT-36985 改了一点代码

research/11.0
Yuan.Wang 4 years ago
parent
commit
48d6dc686c
  1. 12
      designer-form/src/main/java/com/fr/design/mainframe/widget/topxcreator/TopXCreator.java

12
designer-form/src/main/java/com/fr/design/mainframe/widget/topxcreator/TopXCreator.java

@ -42,16 +42,8 @@ public class TopXCreator extends BasicTopXCreator {
* 依据鼠标事件和visible设置是否显示蒙层
* */
public void displayCoverPane(MouseEvent event, boolean visible) {
if (!visible) {
setVisible(false);
return;
}
Rectangle rect = getBounds();
if (rect.contains(event.getX(), event.getY())) {
coverPanel.setVisible(true);
} else {
coverPanel.setVisible(false);
}
boolean isVisible = visible && getBounds().contains(event.getX(), event.getY());
coverPanel.setVisible(isVisible);
}
}

Loading…
Cancel
Save