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

[MenuItem] MenuItem is shifted in MenuBar with modena stylesheet

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Linux SWPipeline, 8.0 b81, Modena

      Description

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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: