RFR: 8375363: StyleHelper.resetToInitialValues() interrupts animated properties
Michael Strauß
mstrauss at openjdk.org
Thu Jan 15 19:17:24 UTC 2026
On Thu, 15 Jan 2026 19:01:31 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Without this PR, the behavior is even stranger: if the window contains two buttons, to reducing the width below the threshold causes the first button to snap to the original size, but the second button continues the transition:
I think that's because the CSS-set values are stored in a `HashMap`, and they are reset by iterating over its entries. Since the iteration order of a `HashSet` is undefined, you sometimes can get the `transition` property to be reset before `-fx-scale-x`, and sometimes after it.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2038#issuecomment-3756434464
More information about the openjfx-dev
mailing list