Added functionality for resizing Question Set if it is too small for confirmation dialog.

HFJ-1572
pull/4/head
Thomas Marstrander 2016-04-25 13:28:02 +02:00
parent d441f67b70
commit e90ef1f831
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ H5P.QuestionSet = function (options, contentId) {
question.params = question.params || {}; question.params = question.params || {};
question.params.overrideSettings = question.params.overrideSettings || {}; question.params.overrideSettings = question.params.overrideSettings || {};
question.params.overrideSettings.$confirmationDialogParent = $template; question.params.overrideSettings.$confirmationDialogParent = $template;
question.params.overrideSettings.instance = this;
var questionInstance = H5P.newRunnable(question, contentId, undefined, undefined, {parent: self}); var questionInstance = H5P.newRunnable(question, contentId, undefined, undefined, {parent: self});
questionInstance.on('resize', function () { questionInstance.on('resize', function () {