Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
/ jfx11u Public archive

Commit

Permalink
8269374: Menu inoperable after setting stage to second monitor
Browse files Browse the repository at this point in the history
Backport-of: c490ddfdb1255add00dd7b0f14fe03857c6946c5
  • Loading branch information
Johan Vos committed Aug 31, 2021
1 parent 319d2f0 commit 8037b35
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,14 @@ protected int _getNativeFrameBuffer(long ptr) {
@Override native protected boolean _enterFullscreen(long ptr, boolean animate, boolean keepRatio, boolean hideCursor);
@Override native protected void _exitFullscreen(long ptr, boolean animate);

@Override
protected void notifyResize(int width, int height) {
super.notifyResize(width, height);

// After resizing, do a move notification to force the view relocation.
// When moving to a screen with different DPI settings, its location needs
// to be recalculated.
updateLocation();
}
}

1 comment on commit 8037b35

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.