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