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

Setting a ScrollPane viewport background to transparent causes text content to render badly.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8
    • javafx

      This is happening on Mac and PC.See attached FXML test case and screenshots.

      The FXML has the following CSS applied which causes the issue:

      .scroll-pane .viewport {
          -fx-background-color: transparent;
      }

      If you replace transparent with a solid color, the text inside the scrollPane renders as expected.

      Use-case context, it is useful to make a ScrollPane completely transparent in order that it scrolls it's content over styling applied to an ancestor in the scenegraph.

            jgiles Jonathan Giles
            mchicharro Moises Chicharro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: