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

Chart: in CSS, specifying -fx-background-fill for one axis, make the other axis filled black

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.1
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Environment:

      Windows 7 64-bit, Java 1.7_02 64-bit, JavaFX 2.1 b12 64-bit

      Description

      If, using CSS, I specify the fill rule for one axis, the other axis is automatically filled with the black color.

      ie: the following rule makes the vertical axis filled with red.

      .chart .axis:left {
          -fx-background-color: red;
      }

      Then the horizontal axis is filled with black.

      Resp, if instead I specified the following rule which makes the horizontal axis filled green

      .chart .axis:bottom {
          -fx-background-color: green;
      }

      Then the vertical axis is filled black.

      See attached screenshot for some example.

        Attachments

        1. ChartAxisCSSBug.jpg
          ChartAxisCSSBug.jpg
          51 kB
        2. Main.css
          0.3 kB
        3. Main.java
          2 kB

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            fbouyajfx Fabrice Bouyé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: