RFR: 8365637: Unmanaged nodes are not added to the Scene's dirty layout list
John Hendrikx
jhendrikx at openjdk.org
Mon Aug 18 21:58:45 UTC 2025
On Mon, 18 Aug 2025 21:15:21 GMT, Nir Lisker <nlisker at openjdk.org> wrote:
> Does `SubScene`'s root also count as a layout root?
After investigation, it seems that SubScene's are considered **scene roots**, so that would it a layout root as well. This code in `Parent` (which monitors Scene/SubScene properties) convinces me that's the case:
sceneRoot = (newSubScene != null && newSubScene.getRoot() == this) ||
(newScene != null && newScene.getRoot() == this);
layoutRoot = !isManaged() || sceneRoot;
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1874#issuecomment-3198543404
More information about the openjfx-dev
mailing list