How is your experience with the OutSystems Community?
46
Views
7
Comments
PopUp height css issue
Question

I implemented a datepicker inside a popup, but even after applying overflow-y: auto; to the popup, its height does not expand when the datepicker is opened.

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Ayushi Kumari ,

The popup doesn’t expand because the Flatpickr calendar is rendered with position: fixed, so it sits outside the normal layout flow. If you want the popup to grow, you need to render the calendar inline (for example, using inline: true), otherwise, the popup height will never be affected. 

You can enable inline mode by using SetFlatpickrConfigs in the OnInitialize of the DatePicker. 

2025-06-19 10-02-53
Ayushi Kumari

Hi @Mihai Melencu
I tried using this, but it causes the datepicker to remain open permanently

2021-11-19 11-12-44
Rui Mendes

Hi @Ayushi Kumari ,

I've put together a small demo to show you my implementation. 

Let me know if this is what you were looking for—the popup is sized so that the calendar doesn't get cut off. 

TestReact9.oml
2025-06-19 10-02-53
Ayushi Kumari

Hi @Rui Mendes
I sincerely appreciate your response—it was very helpful.

2023-09-06 07-26-35
Sudip Pal

Hi @Ayushi Kumari ,

I understood the problem clearly and even I have faced this problem. The solution that I have used is that I have added the below CSS

.flatpickr-calendar.date-picker-extended {    

          overflow-y: scroll;    

          height: 200px;

}

and then added the class "date-picker-extended" in DatePicker Extended class Property.



But note that you might need to adjust the Height for your use case. 

This will work. 

Thanks,

Sudip

2025-06-19 10-02-53
Ayushi Kumari

Hi @Sudip Pal

Thank you for your response. I implemented this approach, and while it was helpful, I ran into some responsiveness issues.

Thankyou
Ayushi

2023-09-06 07-26-35
Sudip Pal

Hey @Ayushi Kumari 

If you need help to resolve the responsiveness problem, let me know.

Thanks,

Sudip

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.