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

Mac OS: CSS padding doesn't properly center the MenuButton arrow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • 7-pool
    • fx2.0
    • javafx
    • Mac platform.

      This issue targets MenuButton.

      I have some rules that doesn't render the same on Mac and Windows. Windows is OK, Mac has a small glitch. 2 pix diff horizontally.
      Here are my rules:
      .list-button {
          -fx-background-radius: 0.0;
          -fx-padding: 4.0;
      }
      .list-button .label {
          -fx-padding:0.0;
      }
      .list-button .arrow-button {
          -fx-padding:0.0;
      }
      .list-button {
          -fx-padding: 4.0 5.0 4.0 5.0; /* BUG, on Mac, to have it properly centered, the padding needs to be: -fx-padding: 4.0 6.0 4.0 4.0;
      }

            kcr Kevin Rushforth
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: