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

[MenuItem] MenuItem is shifted in MenuBar with modena stylesheet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 8
    • javafx
    • Linux SWPipeline, 8.0 b81, Modena

      See screenshot
      Code to reproduce


      @Override
          public void start(Stage primaryStage) {
              setUserAgentStylesheet(STYLESHEET_MODENA);
              BorderPane root = new BorderPane();
              MenuBar bar = new MenuBar();
              
              Menu file = new Menu("File");
              file.getItems().add(new MenuItem("New"));
              bar.getMenus().add(file);
              root.setTop(bar);
              Scene scene = new Scene(root, 300, 300);
              primaryStage.setTitle("" + VersionInfo.getRuntimeVersion());
              primaryStage.setScene(scene);
              primaryStage.show();
          }

        1. 7.png
          7.png
          14 kB
        2. 6.png
          6.png
          14 kB

            jasper Jasper Potts (Inactive)
            slugovoy Sergey Lugovoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: