diff options
author | Sven Gothel <[email protected]> | 2019-03-21 00:54:16 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-03-21 00:54:16 +0100 |
commit | 5ae0eeca1a7031931d10c0db56539bf565ee9591 (patch) | |
tree | a6eaf0a8c1d8a375b073a8fa6523d446df664790 /src/newt/classes/com | |
parent | c4cebae730496f95308ad7a9d01cabe2061d916e (diff) |
NewtCanvasJFX.NativeWindow: Delegate required child window canvas position
NewtCanvasJFX.NativeWindow shall pass through NewtCanvasJFX's Canvas position
to properly position the NEWT child window inside the top level Window.
NewtJFXReparentingKeyAdapter demonstrating manual reparenting demonstrates this case.
TestGearsES2NewtCanvasAWT's default behavior is to use a surrounding border
for the NEWTCanvasAWT child, similar to TestNewtCanvasJFXGLn.
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java b/src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java index 721922ba9..7efde273a 100644 --- a/src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java +++ b/src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java @@ -628,12 +628,12 @@ public class NewtCanvasJFX extends Canvas implements NativeWindowHolder, WindowC @Override public int getX() { - return 0; + return NewtCanvasJFX.this.clientArea.getX(); } @Override public int getY() { - return 0; + return NewtCanvasJFX.this.clientArea.getY(); } @Override |