How to calculate distance from Stage to Root accounting possible CSS transformations?

Thiago Milczarek Sayão thiago.sayao at gmail.com
Sun Jan 29 18:45:23 UTC 2023


Hi,

I want to calculate where to display resize cursors when resizing an
TRANSPARENT Stage + Scene with rounded borders.

- Stage
--- Scene
---- Root

I don't think we would have to be pixel-exact, the resize cursors could be
displayed between Stage and begin of Root actual content.
The actual content could be distant from its "layout box", because of a
border or a padding, for example.

https://github.com/tsayao/jfx/blob/begin_window_move/tests/manual/graphics/StageBeginMoveDragTest.java

Any ideas?

Thanks.
-- Thiago.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230129/2f4e660f/attachment.htm>


More information about the openjfx-dev mailing list