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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recalculate element width/height on window resize #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

South-Paw
Copy link

@South-Paw South-Paw commented Jul 31, 2023

Hi,

I believe this addresses #32 and fixes the element sizing when the window is resized.

To keep it performant, I've added the use-debounce package, defaulted the debounce to 50ms and added an option for users to configure the debounce if required.

Tested on my website and seems to have resolved the odd sizing when I played with the window size and the font changes size between different breakpoints.

Thanks 馃憤

@South-Paw
Copy link
Author

South-Paw commented Jul 31, 2023

Note that the yarn.lock will need updating and feel free to make any tweaks/formatting changes too.

@swijckmans
Copy link

@WinterCore - would love to use your library but the issue regarding resizing behaviour may require us to use something else. Could you review this pull request?

@BRGustavoRibeiro
Copy link

Great job on this PR

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.

None yet

3 participants