Skip to content

fix: get correct grid width after resize#560

Draft
henriettemoe wants to merge 3 commits into
masterfrom
fix/resize-of-grid
Draft

fix: get correct grid width after resize#560
henriettemoe wants to merge 3 commits into
masterfrom
fix/resize-of-grid

Conversation

@henriettemoe

@henriettemoe henriettemoe commented Sep 1, 2023

Copy link
Copy Markdown
Contributor

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);

@boyum boyum Sep 4, 2023

Copy link
Copy Markdown
Contributor

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.

@github-actions

Copy link
Copy Markdown

⚠️ 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