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: get correct grid width after resize #560

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

henriettemoe
Copy link
Contributor

@henriettemoe henriettemoe commented Sep 1, 2023

Looking at possible options to get the correct grid width after resize. This might be fired too many times.

}, [arrowContainerRef, item, grid, buttonState, isHorizontal]);
};

h5pInstance?.on('resize', handleResize);
Copy link
Contributor

@boyum boyum Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should perhaps be off'd when the component is unmounted. Also, it will be added every time the arrow is changed, so the resize will be done multiple times if the arrow has been updated a few times.

Copy link

⚠️ The library version was not updated.
Add the label non-functional if this PR does not require a change of version numbers.

Current version: v0.1.125
Main version: v0.1.125

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.

2 participants