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

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u20
    • fx2.1
    • javafx
    • Windows 7 64-bit, Java 1.7_02 64-bit, JavaFX 2.1 b12 64-bit

      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.

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

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

              Created:
              Updated:
              Resolved:
              Imported: