On Tue, 8 Nov 2022 16:38:02 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8295078: Replace JUnit4 with Junit5 imports > > modules/javafx.graphics/src/main/java/javafx/scene/layout/AnchorPane.java > line 353: > >> 351: >> 352: if (leftAnchor != null) { >> 353: x = snappedLeftInset() + leftAnchor; > > Question: should we use unsnapped coordinates in the computations, and only > snap at the final stage? > > For example, if leftAnchor is 0.5 the child will be positioned between the > pixels, so to speak. > > Or is this indeed an intended functionality? Not 100% sure about this. It sounds somewhat logical. If we set the left anchor to be 5. Do we expect it to be 10 with a render scale of 2 -> 200% resolution? ------------- PR: https://git.openjdk.org/jfx/pull/910