sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

Sizing of JFXDatePicker in ScrollPane #1219

Open CTaszus opened 2 years ago

CTaszus commented 2 years ago

When using JFXDatePicker in a (JFX)ScrollPane with fitWidth(true), the width is calculated wrong. The JFXDatePicker's width is far to large and doesnt shrink when downsizing the window.

This even happens when the width of the JFXDatePicker is bound. Binding/Setting width seems to be ignored.

Nativ FX DatePicker works as expected.

keta1 commented 2 years ago

When using JFXDatePicker in a (JFX)ScrollPane with fitWidth(true), the width is calculated wrong. The JFXDatePicker's width is far to large and doesnt shrink when downsizing the window.

This even happens when the width of the JFXDatePicker is bound. Binding/Setting width seems to be ignored.

Nativ FX DatePicker works as expected.

i fix it with datePicker.getStyleClass().removeAll("combo-box-base");