openjdk-jfx icon indicating copy to clipboard operation
openjdk-jfx copied to clipboard

Bad position for Separator control

Open ghost opened this issue 6 years ago • 2 comments

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: bug_separator_margin

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

ghost avatar Apr 03 '19 16:04 ghost

Please provide a test case.

nlisker avatar Apr 04 '19 22:04 nlisker

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

ghost avatar Apr 05 '19 05:04 ghost