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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: fx2.0
    • Fix Version/s: 7-pool
    • Component/s: javafx
    • Labels:
    • Environment:

      Mac platform.

      Description

      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;
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: