Ztest_Embed in Moodle -- expands full screen regardless of set width
Submitted by 21cccs on Tue, 05/17/2016 - 15:07
Forums:
Despite setting a width and height to my embed code, the embedded content, for example the Image Hot Spot, seems to exapnd across the maximum width of my Moodle Lesson page. Any thoughts on how I may correct this or what may be the cause? (2 images attached). My code is as follows:
<iframe src="https://h5p.org/h5p/embed/13495" width="250" height="500" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script>
Thanks,
falcon
Wed, 05/18/2016 - 11:57
Permalink
If you remove the script tag
If you remove the script tag it probably will behave the way you want it to. The script tag is there to make it responsive.
With this the size will be the same on all devices: <iframe src="https://h5p.org/h5p/embed/13495" width="250" height="500" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
21cccs
Wed, 05/18/2016 - 14:27
Permalink
Worked perfect!
Thanks