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

[fix] reset wrapper rectangle#74

Open
SassNinja wants to merge 1 commit intorgalus:masterfrom
SassNinja:fix/rect-computation
Open

[fix] reset wrapper rectangle#74
SassNinja wants to merge 1 commit intorgalus:masterfrom
SassNinja:fix/rect-computation

Conversation

@SassNinja
Copy link
Copy Markdown
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.

1 participant