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

Recalculate "more" with ResizeObserver #2573

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

IndProgo
Copy link

The problem was that in month view "+n more" button didn't recalculate, when calendar's size changed, only on date navigation.
Updated that it recalculates using ResizeObserver
Fixes #828
Also removed dummy rows for measurements. Using only real rows if one exist, so eventWrapper with a different event height should calculate "more" correctly, though assuming that the "more" is the same height as event rows

@cutterbl
Copy link
Collaborator

Think you're on the right track, but seeing a big difference right now, just from the landing page of the documentation
Before
Before
After
After

@IndProgo
Copy link
Author

Updated that finds first week with an event. Also disables oberve when showAllEvents is enabled

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.

Recalculate the need of more
2 participants