JFoenix icon indicating copy to clipboard operation
JFoenix copied to clipboard

Sizing of JFXDatePicker in ScrollPane

Open CTaszus opened this issue 4 years ago • 1 comments

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.

CTaszus avatar Sep 17 '21 06:09 CTaszus

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");

keta1 avatar Jun 14 '22 15:06 keta1