edvin / tornadofx-controls

CSS Stylable Controls for JavaFX
Apache License 2.0
107 stars 16 forks source link

DateTimePicker large format shortened #9

Closed DJViking closed 7 years ago

DJViking commented 7 years ago

When using a large format the control doesn't grow large enough to show the entire DateTime. Using the format yyyy-MM-dd'T'HH:mm:ss.SSS.

edvin commented 7 years ago

I've added a function that will align the prefColumnCount with the current format. You can try to add the following code after you have set the format to see the effect until the next release:

picker.getEditor().setPrefColumnCount(picker.getFormat().length());

Does that work for you?

DJViking commented 7 years ago

That worked perfectly

edvin commented 7 years ago

Great :) Thanks for getting back to me.