Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8116332

TitledPane has visual artifacts before and after expanding and collapsing an animated TitledPane

XMLWordPrintable

      When the TitledPane is expanding we can see the content briefly before the background is visible. When the TitledPane is collapsing the content is briefly visible after the background is gone.

      This is visible after fixing RT-20225

      The cause is when the content is at its min height it is centered to the title region and slightly extends below the titled region. See attached images with clipping turned off. The fix is to introduce a container for the content and set its alignment to be Pos.BOTTOM_CENTER

        1. collapsed_correct.png
          collapsed_correct.png
          16 kB
        2. collapsed_incorrect.png
          collapsed_incorrect.png
          18 kB
        3. RT20266_revised.diff
          8 kB
        4. RT20266.diff
          8 kB

            kwwong Kinsley Wong (Inactive)
            kwwong Kinsley Wong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: