RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v3]
Andy Goryachev
angorya at openjdk.org
Thu Apr 11 20:06:45 UTC 2024
On Sat, 9 Mar 2024 10:27:21 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:
>
> Allow Tooltip to process the owner styles first so that also global stylesheets are considered for the e.g. tooltip show-delay
Please sync up with the latest master (should be a SOP for any long outstanding PRs - sorry for long delay!)
Description Resource Type Path Location
The method shutdown() in the type Util is not applicable for the arguments (Stage) TooltipTest.java Java Problem /systemTests-test/java/test/robot/javafx/scene line 238
^ please remove the 'stage' argument, see JDK-8325566
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1394#issuecomment-2050428426
More information about the openjfx-dev
mailing list