RFR: 8296387: [Tooltip, CSS] -fx-show-delay is only applied to the first tooltip that is shown before it is displayed [v9]
Andy Goryachev
angorya at openjdk.org
Mon Jul 8 17:51:41 UTC 2024
On Sat, 6 Jul 2024 11:12:48 GMT, Marius Hanl <mhanl at openjdk.org> wrote:
>> modules/javafx.controls/src/test/java/test/javafx/scene/control/TooltipTest.java line 657:
>>
>>> 655: // Style: .tooltip { -fx-show-delay: 200ms; }
>>> 656: stageLoader.getStage().getScene().getStylesheets()
>>> 657: .add("data:base64,LnRvb2x0aXAgeyAtZngtc2hvdy1kZWxheTogMjAwbXM7IH0=");
>>
>> this is clever. can we generate the base64-encoded string on the fly? something along the lines
>>
>>
>> return "data:text/css;base64," + Base64.getEncoder().encodeToString(b);
>>
>>
>> (here and elsewhere?)
>
> Thought about this well, didn't test yet
see for example
https://github.com/openjdk/jfx/blob/72701e6cb4095b8f5042f54ae6bb2c0cec446bcf/modules/javafx.graphics/src/test/java/test/javafx/scene/Node_transition_Test.java#L142
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1394#discussion_r1669046878
More information about the openjfx-dev
mailing list