fixed words being set to height 0 when restarting the test in time mode

This commit is contained in:
unknown 2020-05-20 16:22:19 +01:00
parent 60fb77b346
commit 0d0398d82d

View file

@ -215,6 +215,7 @@ function showWords() {
w += "</div>";
$("#words").append(w);
}
$("#words").removeClass('hidden');
const wordHeight = $($(".word")[0]).outerHeight();
$("#words").css("height", wordHeight * 3 + 'px').css("overflow", "hidden");
}