Merge branch 'master' into release

semi-fullscreen moodle-1.13
Frode Petterson 2018-11-22 10:17:29 +01:00
commit f2a9801879
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
// Make iframe responsive // Make iframe responsive
iframe.style.width = '100%'; iframe.style.width = '100%';
// Bugfix for Chrome: Force update of iframe width. If this is not done the
// document size may not be updated before the content resizes.
iframe.getBoundingClientRect();
// Tell iframe that it needs to resize when our window resizes // Tell iframe that it needs to resize when our window resizes
var resize = function () { var resize = function () {
if (iframe.contentWindow) { if (iframe.contentWindow) {