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 // Hide all questions
$('.question-container', $myDom).hide().eq(questionNumber).show(); $('.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 // Update progress indicator
// Test if current has been answered. // Test if current has been answered.
if (params.progressType === 'textual') { if (params.progressType === 'textual') {