bug resizer.js in code for presentation

Hello, I think, I found a bug.

If I want to embed a presentation I can download the embed-code. But there ist the resizer.js included, too.

Example from my presentation:

Code normal:
<iframe src="https://h5p.org/h5p/embed/204726" width="498" height="296" frameborder="0" allowfullscreen="allowfullscreen"></iframe><script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script>

Code + Show advanced
<script src="https://h5p.org/sites/all/modules/h5p/library/js/h5p-resizer.js" charset="UTF-8"></script>

I hope I could help. Great tool!!!!! I love to work with it! But needed much time, because I tried to configure my presentation for my joomla-blog - and found this bug (?)


Thomas from Berlin (teacher)

[email protected]

BV52's picture

Hi Thomas,

Afaik the h5p-resizer.js is included in the embed code to make the content adjust to the size of screen (i.e. mobile phones). This is not a bug albeit by design. 


Hi BV52,

yes I understand, but the resizer is in both codes included. Sometimes I needed a fixed size (first code? "code normal"?). If I want to adjust an beeing flexible I would use the secon (code "advanced"), so I understood the selection.


icc's picture

It's best to always include the resizer since you'll be sure that the content fits on your page. If you want to customize the size of the content I recommend wrapping it inside another element, having a max-width, e.g.

<div style="max-width:500px">

thank you! I will still gain experience....