i have a view containing a video, with pagination.
before pagination, the iframe is wrapped around a div "fluid-width-video-wrapper". but once i press "page 2", the div disappears and now suddenly the iframe has a certain width and height which i never applied.
take a look here:
hidden link
pagination is at the bottom of the page.
i'm also attaching images of "inspect element" - before and after pagination.
Hey Minesh,
Thanks - but this only partially solves the issue. Best way to adjust an iframe is position it absolute inside a div with padding. This is exactly what you did in the latest views update. Up until now the div "fluid-width-video-wrapper" wasn't there and it was added in the last update to ensure a proper fluid width of the iframe. But there seems to be a bug somewhere as you can see, that after an ajax operation this div disappears and with it goes the fluid width of the iframe.
I think you should fix it 🙂
Giving CSS width to an iframe won't work responsively.
Cheers!
ido
Well - I checked the source of of view's plugin and I did not see such class added to view's plugin.
Then I checked on your install and I can see that it's coming from your theme. I checked your parent theme and I find in your parent theme's CSS file there is such class ".video-shortcode" and ".fluid-width-video-wrapper" is available.
So, I've added following CSS to your content template.