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

fix(_updateItemsInRange) large items should not disappear #1616

Merged
merged 2 commits into from
Jun 19, 2023

Conversation

ctbaird
Copy link
Contributor

@ctbaird ctbaird commented Apr 4, 2023

fix(_updateItemsInRange) large items should not disappear

This is to address #1573

Adds a condition to only hide items when the group is not visible and height is defined.

The problem seems to be happening when a group is redrawn and height is temporarily undefined. Group._updateItemsInRange is called before the group height gets defined in redraw. When height is undefined in _updateItemsInRange , it considers the group invisible and hides the items (lines 908-914 Group.js). Then for the next paint, when height is defined, the group is now visible but there are no items.

@alexdeia
Copy link

alexdeia commented Apr 5, 2023

I tested this and commented here #1573 (comment)

@yotamberk yotamberk merged commit ea35039 into visjs:master Jun 19, 2023
@blueberryMonkeySquid
Copy link

Hi @yotamberk apologies if this is not the place to ask, but this PR fixes a big problem in my app. Is it possible for you or someone else to publish a new release with this fix?

@alexdeia
Copy link

@blueberryMonkeySquid , unfortunately, this PR didn't fix the bug completely.

@blueberryMonkeySquid
Copy link

@alexdeia thank you for the response, I see the behavior you captured in the video. Looks like it's related to vertical scrolling? The large items in my timeline disappear when I scroll horizontally. I got rid of vertical scrolling due to another bug so maybe that's why I haven't seen anything disappear after testing with this change.

@vis-bot
Copy link
Collaborator

vis-bot commented Oct 27, 2023

🎉 This PR is included in version 7.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

5 participants