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

Validate both width and height #4299

Merged
merged 1 commit into from
Jan 29, 2019
Merged

Validate both width and height #4299

merged 1 commit into from
Jan 29, 2019

Conversation

shemsiu
Copy link
Contributor

@shemsiu shemsiu commented Jan 29, 2019

Make sure to validate both width and height before running "setDimensions();".

The focus point will not work if we have "img { width: 100%; }" in the stylesheet.

This pull request will fix the bug.

Make sure to validate both width and height before running "setDimensions();". 

The focus point will not work if we have "img { width: 100%; }" in the stylesheet. 

This pull request will fix the bug.
@nul800sebastiaan
Copy link
Member

Hey there, thanks @shemsiu, this is great, thanks! 👍

Congrats on your first accepted PR for Umbraco CMS! 🏅

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

Successfully merging this pull request may close these issues.

3 participants