Fix problems with transition messing up height and width calculations

pull/1/head
Svein-Tore Griff With 2013-05-06 01:47:53 +02:00
parent 7c0e4e4b85
commit da62f4f41a
1 changed files with 4 additions and 1 deletions

View File

@ -299,10 +299,13 @@ H5P.QuestionSet = function (options, contentId) {
$('#qdot-'+i, $myDom).removeClass('unanswered').addClass('answered'); $('#qdot-'+i, $myDom).removeClass('unanswered').addClass('answered');
} }
} }
// Allow other libraries to add transitions after the questions have been inited
$('.questionset', $myDom).addClass('started');
$('.qs-startbutton', $myDom).click(function () { $('.qs-startbutton', $myDom).click(function () {
$(this).parents('.intro-page').hide(); $(this).parents('.intro-page').hide();
$('.questionset', $myDom).addClass('started').removeClass('hidden'); $('.questionset', $myDom).removeClass('hidden');
}); });
// Set event listeners. // Set event listeners.