openjdk-jfx
openjdk-jfx copied to clipboard
Bad position for Separator control
It's an old bug I known but I can see that nobody noticed: the separator control have a bad position.
You can see the problem on left:

To get the corrected version, you need to set additional padding or margin:
- vertical: +3px at left
- horizontal: +4px at top and +2px at bottom
Please provide a test case.
public class MainFX extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setScene(new Scene(new HBox(new Button("Button"), new Separator(Orientation.VERTICAL), new VBox(new Button("Button"), new Separator(Orientation.HORIZONTAL), new Button("Button")))));
primaryStage.show();
}
}