Skip to content

customize calendar height #1641

@AsasinCree

Description

@AsasinCree

react-dates version
react-dates@19.0.3

Describe the bug
After customize some UI style, last week is covered by calendar container like below.
image

I tried to override the css class "DayPicker_transitionContainer" to fix the height but it won't adjust dynamically according to weeks account(like below two different month, height is different)
3

I checked the source code and find below logic:
image
I could change the "MONTH_PADDING" to adjust the height to fix my issue but "MONTH_PADDING" is a const in this file which can't be controlled from outside.

What I want is let "MONTH_PADDING" as a prop to us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions