JDK-8096045 : Accordion : border paint incorrectly
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P5
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Submitted: 2012-09-13
  • Updated: 2015-06-12
  • Resolved: 2014-09-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Blocks :  
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());
    }
Comments
I just ran this in 8u40 ea and it looks fine.
18-09-2014