JFXtras / jfxtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets.
http://jfxtras.org
Other
599 stars 123 forks source link

DateTimePicker in Vbox with Hgrow not working #119

Closed siemlohuis closed 4 years ago

siemlohuis commented 4 years ago

I am making a layout that looks like this: Screenshot

But the LocalDateTimeTextField isn't ligned up with the rest of my layout (Smaller then the textfields) because the Hgrow on the VBox'es (Which would make them even sized) don't work with the LocalDateTimeTextField.

The FXML file: Fxml.zip

How can I fix this? Thanks for helping!

tbee commented 4 years ago

I'll take a look. What version of JFXtras are you using?

tbee commented 4 years ago

Ahm. If you want to align different controls in a grid, nested VBox and HBox is not the way to go. You really should be using a grid layout like MigLayout. https://github.com/mikaelgrev/miglayout/blob/master/javafx/src/test/resources/MigPaneTest8.xml

siemlohuis commented 4 years ago

@tbee Thanks for helping! I got it working with a Gridpane