Fix problems with transition messing up height and width calculations
parent
7c0e4e4b85
commit
da62f4f41a
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue