Resize on video loaded and when results are already rendered.

(cherry picked from commit b02fe7c)
pull/1/head
Thomas Marstrander 2015-07-08 11:01:20 +02:00
parent 997db862e7
commit 02d3585425
1 changed files with 5 additions and 0 deletions

View File

@ -235,6 +235,7 @@ H5P.QuestionSet = function (options, contentId) {
var _displayEndGame = function () {
if (rendered) {
$myDom.children().hide().filter('.questionset-results').show();
self.trigger('resize');
return;
}
//Remove old score screen.
@ -306,6 +307,10 @@ H5P.QuestionSet = function (options, contentId) {
}
});
video.attach($videoContainer);
// Resize on video loaded
video.on('loaded', function () {
self.trigger('resize');
});
video.play();
if (params.endGame.skipButtonText) {