Merge pull request #1129 from jloguercio/sizeOfInput

Fix size of input blank width reducing when you are writing in the ckeditor
pull/2487/head
José Loguercio 9 years ago
commit 0da5711faa
  1. 3
      main/exercice/fill_blanks.class.php

@ -118,7 +118,8 @@ class FillBlanks extends Question
// 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+"]")) {

Loading…
Cancel
Save