-fx-background-position with negative values is drawn out of bounds

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 7u6
    • Component/s: javafx
    • Environment:

      JavaFX
      2.2.0-b21
      Toolkit = QuantumToolkit
      Pipeline = D3DPipeline
      Hardware acceleration ENABLED

      Operating System
      Windows 7, amd64, 6.1

      Java Version
      1.7.0_06, Oracle Corporation, 1.7.0_06-b24

      When I use the -fx-background-position with negative values in CSS, at execution background is painted out of the bounds of the target Node.

      /* base icon style class */
      .icon {
      -fx-background-image: url("../images/glyphicons-black.png");
      -fx-background-repeat: no-repeat;
      }

      /* quit icon style: without position offset */
      .icon-quit {
      -fx-background-position: 0px 0px;
      }


      /* useradd icon style: with negative offset */
      .icon-useradd {
      -fx-background-position: -90px 0px;
      }

      In the attachment, we can see that for user add button, the background image is painted out of bounds of the button. I also provide in attchement the used glyph image.

            Assignee:
            Richard Bair (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: