OPPG-452: QS now call resize on the question object if the function exists.
parent
3d10a111cd
commit
936c3c9a62
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue