On Fri, 28 Jul 2023 09:26:35 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:
> Alternative fix for JFXPanel issues. > > I added an extra line to **really** trigger the repainting in > `EmbeddedScene`. This was inspired by this code in `GlassWindowEventHandler` > which reacts to `WindowEvent.RESCALE`. It not only calls > `entireSceneNeedsRepaint` but also `updateSceneState`. Snippet: > > case WindowEvent.RESCALE: { > float outScaleX = window.getOutputScaleX(); > float outScaleY = window.getOutputScaleY(); > stage.stageListener.changedScale(outScaleX, outScaleY); > // We need to sync the new scales for painting > QuantumToolkit.runWithRenderLock(() -> { > GlassScene scene = stage.getScene(); > if (scene != null) { > scene.entireSceneNeedsRepaint(); > scene.updateSceneState(); > } > return null; > }); > break; > } This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jfx/pull/1189