RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v7]
Kevin Rushforth
kcr at openjdk.org
Tue Jun 25 23:49:16 UTC 2024
On Tue, 25 Jun 2024 23:10:28 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
>> This PR fixes a long standing issue where the `Tooltip` will always wait one second until it appears the very first time, even if the
>> `-fx-show-delay` was set to another value.
>>
>> The culprit is, that the `cssForced` flag is not inside `Tooltip`, but inside the `TooltipBehaviour`. So the very first `Tooltip` gets processed correctly, but after no `Tooltip` will be processed by CSS before showing, resulting in the set `-fx-show-delay` to not be applied immediately.
>>
>> Added a bunch of headful tests for the behaviour since there were none before.
>
> Marius Hanl has updated the pull request incrementally with one additional commit since the last revision:
>
> Doc
I just took a quick look and yes, without changes, this would need a CSR. Using a Helper method would be one way to avoid it.
Also, I think a second reviewer would be good here.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1394#issuecomment-2190214813
More information about the openjfx-dev
mailing list