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

fix: dynamic height not work with a tag wrapper #537

Merged
merged 2 commits into from
Feb 12, 2021

Conversation

thuansb
Copy link

@thuansb thuansb commented Jan 8, 2021

If the image is wrapped by an a tag, then the dynamic height is not working, as the current logic get a tag clientHeight which is always 0.

Solution: try to get image tag first, if image not there find first first child tag.

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.

3 participants