Skip to content

Recalculate "more" with ResizeObserver#2573

Open
IndProgo wants to merge 8 commits intojquense:masterfrom
IndProgo:master
Open

Recalculate "more" with ResizeObserver#2573
IndProgo wants to merge 8 commits intojquense:masterfrom
IndProgo:master

Conversation

@IndProgo
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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