Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Recalculate element width/height on window resize #68

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

Open
South-Paw wants to merge 1 commit into WinterCore:master
base: master
Choose a base branch
Loading
from South-Paw:master

Conversation

@South-Paw
Copy link

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

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 👍

BRGustavoRibeiro reacted with heart emoji
Copy link
Author

South-Paw commented Jul 31, 2023
edited
Loading

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

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 reacted with heart emoji

Copy link

Great job on this PR

South-Paw reacted with rocket emoji

Copy link

@WinterCore any chance you could review this PR and release a new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /