Iframe resizing
-
responsive-embeds.js has code to resize all iframes that have a width and height set. This is causing an issue with some iframes that shouldn’t have a max-height set this way and causing them to be cut off.
Two possible fixes I can think of:
1. Instead of just checking if width and height are set, check to see if one or the other is set to a percentage value. I have an iframe set to 400px tall and 100% wide that should not be getting assigned any particular aspect ratio.
2. Before setting a max-height at the end of the script, do a final check to ensure the max-height isn’t less than the height.
- The topic ‘Iframe resizing’ is closed to new replies.