RFR: 8295078: TextField blurry when inside an TitledPane -> AnchorPane [v3]

Marius Hanl mhanl at openjdk.org
Thu Nov 3 21:21:42 UTC 2022


> 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`

Marius Hanl has updated the pull request incrementally with one additional commit since the last revision:

  8295078: Replace JUnit4 with Junit5 imports

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/910/files
  - new: https://git.openjdk.org/jfx/pull/910/files/901416db..9fa887b4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=910&range=02
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=910&range=01-02

  Stats: 6 lines in 1 file changed: 2 ins; 2 del; 2 mod
  Patch: https://git.openjdk.org/jfx/pull/910.diff
  Fetch: git fetch https://git.openjdk.org/jfx pull/910/head:pull/910

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


More information about the openjfx-dev mailing list