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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache original display property #46

Closed
wants to merge 1 commit into from
Closed

cache original display property #46

wants to merge 1 commit into from

Conversation

cabaret
Copy link

@cabaret cabaret commented Jan 7, 2015

We ran into problems when using matchHeight.js with elements where the display property was set using inline css (a 'style' attribute). The hidden elements would have their display property removed when matchHeight triggered or on resize.

This patch caches the original display property and retrieves it from cache after the calculations has been done. This way, hidden elements stay hidden.

@liabru liabru closed this in 4917d6c Jan 12, 2015
@liabru
Copy link
Owner

liabru commented Jan 12, 2015

Thanks for reporting this. I'd implemented something similar already in another part of the code, so I used it again here for consistency.

Hopefully it works correctly for your use case

@cabaret
Copy link
Author

cabaret commented Jan 13, 2015

Yep, works great now! Thanks!

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

2 participants