JDK-8122775 : Accordion is changing size during open/close animation
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-11-22
  • Updated: 2015-06-17
  • Resolved: 2013-11-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Duplicate :  
Relates :  
Description
See attached movie - Watch the bottom of the accordion, it changes size and obscures the last TitledPane during the animation. This is impacting SB as we use Accordion heavily in our UI. Have also attached FXML test case.
Comments
http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/f26c68052ab0 For 8.0 I went with Martin's suggestion to just switch the animation style to LINEAR. This should be resolved to a degree now - from my observations it appears better than it was previously. File a new bug if it persists.
25-11-2013

As with RT-34451 I will try to tackle this issue prior to ZBB, but no guarantees. Again, in my opinion, this should be a P4 with a fix version of 8u20 that can be pull into Lombard if time permits.
22-11-2013

I can see the difference, but I know what I'm looking for. Jonathan have to decide whether he want LINEAR instead of EASE there. But as I said before, it won't completely fix the issue, there's still some small flicker + I guess this will only help the cases where both animated TitledPanes have the same size.
22-11-2013

Seeing as the animation happens pretty quickly, can you notice any difference when you replace the easing with linear? On short duration animations, easing is generally unnoticeable and therefore possibly wasted in this use case.
22-11-2013

Just by looking at the TitledPane animations that are done for expanding and shrinking TitledPanes. One is EASE_IN and one EASE_OUT. Sum of these animations (when applied to 2 same-size TitledPane) is NOT constant. Switching the animations to LINEAR gives much better result (there's still 1px flicker, which might be caused by rounding of fractional parts). All in all, I doubt that this is a regression and my opinion is that this should be deferred to 9 as it's does not have a simple solution we could use for 8.0, given our limited timeframe.
22-11-2013

I not really sure if this is a regression, possibly a very old one. FWIR, the animation of TitledPane/Accordion was never really smooth. Maybe Jonathan can comment on this? Do Controls have some bug for it already?
22-11-2013

Looking at the movie it seems to me like a duplicate of RT-34451.
22-11-2013

Possibly a layout bug. Is it a regression?
22-11-2013