Dosbox software embed does not adjust to size

Posted in General by Matej Jan Wed Dec 27 2017 08:50:52 GMT+0000 (UTC)·Viewed 407 times

I'm trying to embed an MS Dos game into my webpage using the embed code found on the game's archive page. However, the 'screen' inside the embed is positioned outside the iframe. I'm attaching an image: [Imgur](https://i.imgur.com/Y7UG5Nm.png) The #emulate element gets a margin-top: 114.5px applied to it so it appears out of bounds. If the margin-top is removed (via inspect element), it works correctly. How would one go about inspecting the source code? I would like to contribute a fix, if possible, unless your team wants to fix this. It would be great to be able to use any size embed (for example, the games run at 640×400px, not the 560×384px of the default embed). The player already adjusts to the size correctly, it's just the top margin that is computed incorrectly. If that was fixed, it would all work great, at least for Dosbox embed. I did run into different sizing problems with the ZX Spectrum embed for example, so the whole system might need a checkup. Let me know where to start, thank you.
  
Markdown is allowed