Utente:Sanjilops/monobook.js: differenze tra le versioni

Vai alla navigazione Vai alla ricerca
Contenuto aggiunto Contenuto cancellato
mNessun oggetto della modifica
mNessun oggetto della modifica
Riga 131: Riga 131:
else span.style.right = "0px";
else span.style.right = "0px";
temp = getText(span);
temp = getText(span);
temp = temp.length * 12; // font-size + letter-spacing
temp = temp.length * 3;
span.style.width = (temp < 400)? temp + 'px' : "400px";
span.style.width = (temp < 400)? temp + 'px' : "400px";
ref.appendChild(span);
ref.appendChild(span);