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

TabPane renders content of all tabs even only one is active

    Details

      Description

      TabPane renders content of all tabs even only one is active which very impacts startup time.
      Here are more details.

      >> I did look at startup time of J1 app and Stage.show() takes ~10.3 seconds where
      >> javafx.scene.Scene.doLayoutPass() takes 7.927
      >> javafx.scene.Scene.doCSSPass() takes 2.124
      >>
      >>
      >> It looks like we do render all tabs even only one is visible.
      >> Setting setVisible(false) for all tabs except Timeline doesn't help.
      >> Removing all tabs except Timeline tab reduces Stage.show() to 2.792 seconds.

      On 8/8/12 4:40 PM, Jonathan Giles wrote:
      > Regarding the issue you're talking about, to me I would consider this a major bug. There are some considerations that need to be made regarding the preferred size of a
      > TabPane possibly being related to the size of the biggest content in all of the Tabs, but this is something Kinsley (CC'd) should look into. We certainly shouldn't be
      > wasting excessive cycles on invisible content.

        Attachments

        1. RT24105.diff
          5 kB
        2. RT24105.diff
          4 kB
        3. TabPaneTest.java
          34 kB

          Issue Links

            Activity

              People

              • Assignee:
                arapte Ambarish Rapte
                Reporter:
                epavlova Ekaterina Pavlova
              • Votes:
                2 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Imported: