From 8b50061e01fe6b99dd05f2507b796d3a88546aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20J=C3=B8rgensen?= Date: Fri, 21 Mar 2014 13:49:38 +0100 Subject: [PATCH] Fixed resizing in embed-iframe --- js/questionset.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/questionset.js b/js/questionset.js index 388678c..5e33045 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -335,6 +335,8 @@ H5P.QuestionSet = function (options, contentId) { if (renderSolutions) { showSolutions(); } + + this.$.trigger('resize'); return this; }; @@ -358,6 +360,7 @@ H5P.QuestionSet = function (options, contentId) { // Masquerade the main object to hide inner properties and functions. var returnObject = { + $: $(this), attach: attach, // Attach to DOM object getQuestions: function () {return questionInstances;}, getScore: getScore,