Skip to content
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

Fixes edge-case CalendarMonth height issue #57

Merged
merged 1 commit into from
Sep 6, 2016

Conversation

majapw
Copy link
Collaborator

@majapw majapw commented Sep 2, 2016

I recently noticed that sometimes the height of the datepicker was not rendering correctly, specifically that the table seemed to be an extra row representing the full first week of the following month:
screen shot 2016-09-02 at 4 10 45 pm

Turns out, when the next month starts at the beginning of the week (according to whatever locale you're in), we still render that full week as outside days.

I also discovered that this was a ticking time bomb as related to the tests for getCalendarMonthWeeks that would have started breaking in December. As a result I've added some tests to cover this edgecase as well.

@majapw majapw force-pushed the fix-CalendarMonth-height-issue branch from 72e30f7 to d9ccfd5 Compare September 2, 2016 23:14
@ljharb
Copy link
Member

ljharb commented Sep 2, 2016

LGTM

@majapw majapw force-pushed the fix-CalendarMonth-height-issue branch from d9ccfd5 to 9b32cd3 Compare September 3, 2016 05:36
@majapw majapw force-pushed the fix-CalendarMonth-height-issue branch from 9b32cd3 to 58030d2 Compare September 6, 2016 17:09
@majapw majapw merged commit 92160d1 into master Sep 6, 2016
@majapw majapw deleted the fix-CalendarMonth-height-issue branch September 6, 2016 17:31
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.

None yet

2 participants