Browse Source

Pull request #1798: REPORT-34020 【国际化】非简中设计器-界面右侧面板选择超链接或悬浮元素后下拉框溢出

Merge in DESIGN/design from ~HENRY.WANG/design:release/10.0 to release/10.0

* commit '831f34ccf7eaa543ae6c04550a2f81a27aae21e7':
  REPORT-34020 【国际化】非简中设计器-界面右侧面板选择超链接或悬浮元素后下拉框溢出
feature/big-screen
Henry.Wang 4 years ago
parent
commit
eda97fe7b3
  1. 6
      designer-base/src/main/java/com/fr/design/utils/gui/GUICoreUtils.java

6
designer-base/src/main/java/com/fr/design/utils/gui/GUICoreUtils.java

@ -398,9 +398,11 @@ public final class GUICoreUtils {
Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
screen.setSize(screen.getSize().width, screen.height - HEIGHT_GAP);
int showOnScreenX = Math.min(screen.width, parentComponent.getLocationOnScreen().x + parentComponent.getWidth());
// peter:调整X的高度.
if (point.x + size.width > screen.width && size.width < screen.width) {
x += (screen.width - point.x - size.width);
if (point.x + size.width > showOnScreenX && size.width < showOnScreenX) {
x += (showOnScreenX - point.x - size.width);
}
// peter:调整y高度.

Loading…
Cancel
Save