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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7u6
    • javafx
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: