Skip to content

Commit

Permalink
Fix size of input blank width reducing when you are writing in the ck…
Browse files Browse the repository at this point in the history
…editor
  • Loading branch information
jloguercio committed May 4, 2016
1 parent 8dc508b commit 870291c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/exercice/fill_blanks.class.php
Expand Up @@ -118,7 +118,8 @@ function updateBlanks()
// get input size
var lainputsize = 200;
if ($("#samplesize\\\["+i+"\\\]").width()) {
lainputsize = $("#samplesize\\\["+i+"\\\]").width();
// this is a weird patch to avoid to reduce the size of input blank when you are writing in the ckeditor.
lainputsize = $("#samplesize\\\["+i+"\\\]").width() + 9;
}
if (document.getElementById("weighting["+i+"]")) {
Expand Down

0 comments on commit 870291c

Please sign in to comment.