Integrated: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed
Marius Hanl
mhanl at openjdk.org
Fri Jul 12 10:38:01 UTC 2024
On Fri, 8 Mar 2024 15:58:09 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 and headless tests for the behaviour since there were none before.
This pull request has now been integrated.
Changeset: 5b448b8b
Author: Marius Hanl <mhanl at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/5b448b8bfddcfd062fb376132a48467e0d180a3c
Stats: 568 lines in 9 files changed: 523 ins; 12 del; 33 mod
8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed
Reviewed-by: angorya, kcr
-------------
PR: https://git.openjdk.org/jfx/pull/1394
More information about the openjfx-dev
mailing list