Discussion:
DatePicker size issue
PLOCON Andreea
2018-11-27 07:18:32 UTC
Permalink
Dear all,

I am currently trying to display a DatePicker using org.openjfx:openjfx:12-ea+2:windows-x64_bin.
Therefor I am using the following code:

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.DatePicker;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class DatePickerIssue extends Application {

@Override
public void start(Stage stage) {
VBox vBox = new VBox(new DatePicker());
stage.setScene(new Scene(vBox));
stage.show();
}

public static void main(String[] args) {
launch(args);
}
}

The DatePicker is not shown completely and as a quick fix I used vBox.setStyle("-fx-padding: 0 0 10 0;").
Could someone please tell me if this is a known issue and how can it be fixed?
Loading...