vaadin 14 Datepicker

Setheight and setwidth not working ?

How does your code look like?

Datepicker creating and add to HorizontalLayout it is not align the height and width

show your code please

txtSDate = new PopupDateField();
txtSDate.setCaption(“From”);
txtSDate.setRequired(true);
txtSDate.setRequiredIndicatorVisible(true);
txtSDate.setWidth(“100.0%”);
txtSDate.setHeight(“15px”);
horizontalLayout_3.add(txtSDate);

PopupDateField() --Datepicker

And the horizonal layout has a widht?

setsizefull

my problem is datepicker not adopting give height

That’s not possible

If you want to change the height of the DatePicker you must style the shadow elements

https://vaadin.com/docs/latest/styling/custom-theme/styling-components

ok sir