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

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