iframe-resizer icon indicating copy to clipboard operation
iframe-resizer copied to clipboard

dom element inside iframe that has viewport height set to 100vh will prevent resizer working

Open crapthings opened this issue 5 years ago • 4 comments

https://streamable.com/0s1keq

in this video, if you can see i changed height to 100vh

the resizer acting weird

edit

it looks use 'vh' is not support

crapthings avatar Jul 03 '20 08:07 crapthings

I hava the same problem. when I change "vh" to "px" , it solved! But is there a elegant way ?

cesar-blog avatar Jul 09 '20 03:07 cesar-blog

I have noticed the same problem. Either we need to create a feature request, to dynamically convert the viewport height to pixels, or, we need to find ways to avoid use of the viewport height (vh) measurement in our development.

aaronlutze avatar Jul 15 '20 01:07 aaronlutze

That is very strange, would welcome a PR if anyone works out a fix

davidjbradshaw avatar Jul 15 '20 14:07 davidjbradshaw

I am having this problem, I think. Have you come up with a solution?

icreateweb avatar Aug 09 '22 01:08 icreateweb

This is fixed in v5, by forcing height: auto !important on to the <html> and <body> elements.

Alpha version is on PR #1212 if you would like to give it a go.

davidjbradshaw avatar Feb 22 '24 18:02 davidjbradshaw