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

TabPane disabled pseudo-class cascades until invisibility

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

      Description

      If you have TabPanes in TabPanes and disable an overlying TabPane it cascades down through all TabPanes and the reduced opacity cumulates unti nothing can be seen anymore. This even affects the own Tabs of the disabled TabPane (see attached image).

      As a workaround we overwrite the modena style ".tab-pane:disabled { -fx-opacity: 0.4; }" with ".tab-pane:disabled { -fx-opacity: 1.0; }" and everything looks as expected.

      Maybe ".tab-pane:disabled" should be removed from disabled-section in the modena stylesheet. The ".tab-pane > .tab-header-area > .headers-region > .tab:disabled" is still there and should result in the desired look (see attached image).

        Attachments

        1. 2015-12-09_TabPaneCascadingDisabledOpacity.png
          2015-12-09_TabPaneCascadingDisabledOpacity.png
          26 kB
        2. RunTest.java
          1 kB
        3. RunTest.css
          0.0 kB
        4. JDK8144983.java
          0.8 kB

          Activity

            People

            • Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              aliebelt Andreas Liebelt
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: