-
-
Notifications
You must be signed in to change notification settings - Fork 974
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
Cannot set maxHeight using vH #930
Comments
I guess we should do Would welcome a PR |
That sounds reasonable and was similar to what I was thinking. I'll use lodash to check for isNumber since that's already a dependency of the lib. |
Can you just cut and paste the function, the built code has no dependencies in it or we can just write it function isNumber(value) {
return typeOf value === ‘Number’
} |
Fixed in v4.3.2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Cannot set maxHeight option to
vH
To Reproduce
Set the maxHeight option to 100vh. When you look at the iframe you'll see the style tag for the iframe does not have a maxHeight set.
Expected behavior
I would expect to be able to set the iframe height to units other than px. vH is incredibly useful since it is automatically responsive if the user changes the screen size.
Additional context
I believe the issue is due to the addStyle function add a
px
suffix to the iframe styles.Not sure how to fix while retaining backwards compatibility.
Obviously these same issues would apply to
vw
as well if my reasoning is correct.The text was updated successfully, but these errors were encountered: