Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

[fix] reset wrapper rectangle #74

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

Conversation

SassNinja
Copy link
Contributor

I've noticed the plugin doesn't compute the element's rectangle correctly on window resize when using the wrap feature.

The reason is the element's styles get reseted before calling getRectangle but the wrapper wasn't reseted what result in an incorrect computation.
So the element remains small than the viewport if increase the window width after initialization.

This PR fixes it by reseting the wrapper rectangle before doing the element's rectangle computation.

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

Successfully merging this pull request may close these issues.

None yet

1 participant