From 5ae0eeca1a7031931d10c0db56539bf565ee9591 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 21 Mar 2019 00:54:16 +0100 Subject: 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. --- src/newt/classes/com/jogamp/newt/javafx/NewtCanvasJFX.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newt/classes/com/jogamp') 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 -- cgit v1.2.3