On Thu, 23 May 2024 22:17:36 GMT, Marius Hanl <mh...@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:
> 
>   Add more documentation and improve css stylesheet test threshold

I am not sure what the difference might be.  The code in the MonkeyTester 
generates a stylesheet, encodes it in base64 data url and adds it to all scenes 
in the application (it also removes the old version, if any).

The stylesheet gets loaded - I can see it by slightly changed colors and the 
fact that the tooltip show delay gets changed on the second and any subsequent 
invocations.

Can you try it?
https://github.com/andy-goryachev-oracle/MonkeyTest

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

PR Comment: https://git.openjdk.org/jfx/pull/1394#issuecomment-2128136276

Reply via email to