Skip to content

Fix ExpandableCalendar StartHeight calculations #2661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KimGnab
Copy link

@KimGnab KimGnab commented May 14, 2025

Problem Cause:
When ExpandableCalendar was configured with initialPosition={Positions.OPEN}, the calendar's total open height startHeight was calculated before the actual height of the header section headerHeight was determined. This led to headerHeight being treated as 0 or an incorrect value, causing the calendar content to appear clipped or the layout to be misaligned, even though the calendar was in an open state.

Solution:

  1. Fixed that when the headerHeight value changes, the logic that calculates the height when the calendar is open getOpenHeight immediately reflects this and recalculates the startHeight correctly.
  2. Also, synchronize the correctly calculated startHeight value to the object that manages native component styles internally _wrapperStyles to ensure the correct height is applied to the actual UI.

#2646

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant