On Mon, 17 Aug 2026 00:39:38 GMT, Michael Strauß <[email protected]> wrote:

>> Pixel snapping is really hard to get right (in fact, it's so hard that even 
>> JavaFX itself gets it wrong in so many places).
>> I've compiled a list of things that I've learned, because there isn't really 
>> any good documentation as of yet.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Michael Strauß has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   review changes

modules/javafx.graphics/src/main/java/javafx/scene/layout/package-info.java 
line 337:

> 335:  * child.relocate(snapPositionX(10), snapPositionY(20));
> 336:  * child.setTranslateX(0.5); // The rendered X coordinate is now between 
> pixels
> 337:  * }

Is there some conclusion or advice to be drawn from here? I feel it leaves the 
reader hanging a bit.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/2260#discussion_r3798249037

Reply via email to