Ztest_Embed in Moodle -- expands full screen regardless of set width

21cccs's picture

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's picture

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's picture

Thanks