From da62f4f41a348d7cba795f967ff25222a8fb6301 Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Mon, 6 May 2013 01:47:53 +0200 Subject: [PATCH] Fix problems with transition messing up height and width calculations --- js/questionset.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index 851d74f..be582ed 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -299,10 +299,13 @@ H5P.QuestionSet = function (options, contentId) { $('#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 () { $(this).parents('.intro-page').hide(); - $('.questionset', $myDom).addClass('started').removeClass('hidden'); + $('.questionset', $myDom).removeClass('hidden'); }); // Set event listeners.