Integrated: 8295078: TextField blurry when inside an TitledPane -> AnchorPane

Marius Hanl mhanl at openjdk.org
Wed May 17 16:44:11 UTC 2023


On Tue, 11 Oct 2022 09:05:34 GMT, Marius Hanl <mhanl at openjdk.org> wrote:

> The problem here is, that the `AnchorPane` does not use its snapped insets.
> Therefore, the fix is to replace all `getInsets().getXXX` calls with their corresponding `snappedXXXInset()` methods.
> 
> Note: The reason the `AnchorPane` inside  a `TitledPane` is blurry in the first place is because a `TitledPane` applies padding to its content.
> Line 2995 in `modena.css`:
> 
> .titled-pane > .content > AnchorPane {
>     -fx-padding: 0.8em;
> }
> 
> which translates to 9.6px.
> 
> EDIT: This is btw a good example of the JUnit 5 feature `@ParameterizedTest` with `@ValueSource`

This pull request has now been integrated.

Changeset: 6aeaff36
Author:    Marius Hanl <mhanl at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/6aeaff36c07129d807fd3efa8aa20fb8dd8dc31a
Stats:     183 lines in 3 files changed: 153 ins; 6 del; 24 mod

8295078: TextField blurry when inside an TitledPane -> AnchorPane

Reviewed-by: angorya, kcr, jhendrikx

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

PR: https://git.openjdk.org/jfx/pull/910


More information about the openjfx-dev mailing list