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

Accordion : border paint incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Environment:

      2.2 and 8.0

      Description

      If set accordion max size - height take incorrectly.

      @Override
          public void start(Stage stage) throws Exception {
              BorderPane root = new BorderPane();
              
              Accordion accordion = new Accordion();
              TitledPane pane1 = TitledPaneBuilder.create().text("123456789").content(new Label("Text")).build();
              TitledPane pane2 = TitledPaneBuilder.create().text("Title 2").content(new Label("Text")).build();
              accordion.setMaxSize(50, 50);
              accordion.getPanes().addAll(pane1, pane2);
              accordion.setStyle("-fx-border-color: red;-fx-border-insets: 20;");
              root.setCenter(accordion);
              
              Scene scene = new Scene(root, 500, 500);
              stage.setScene(scene);
              stage.show();
              stage.setTitle(VersionInfo.getRuntimeVersion());
          }

        Attachments

        1. snapshot10.png
          snapshot10.png
          11 kB
        2. snapshot8.png
          snapshot8.png
          12 kB
        3. snapshot9.png
          snapshot9.png
          12 kB

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              slugovoy Sergey Lugovoy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: