OPPG-452: QS now call resize on the question object if the function exists.

pull/1/head
Frank Ronny Larsen 2013-07-19 13:44:34 +02:00
parent 3d10a111cd
commit 936c3c9a62
1 changed files with 5 additions and 0 deletions

View File

@ -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') {