From 936c3c9a62f103a477c0184a21d303c109a61999 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Fri, 19 Jul 2013 13:44:34 +0200 Subject: [PATCH] OPPG-452: QS now call resize on the question object if the function exists. --- js/questionset.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/questionset.js b/js/questionset.js index 28d0ea0..2a36324 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -166,6 +166,11 @@ H5P.QuestionSet = function (options, contentId) { // Hide all questions $('.question-container', $myDom).hide().eq(questionNumber).show(); + // Trigger resize on question in case the size of the QS has changed. + if (questionInstances[questionNumber].resize) { + questionInstances[questionNumber].resize(); + } + // Update progress indicator // Test if current has been answered. if (params.progressType === 'textual') {