Go back to text wordbubbles

This commit is contained in:
2014-06-14 10:46:50 -07:00
parent f5f8d9ccbf
commit ff3e27e225

View File

@@ -766,7 +766,7 @@ var moonlightDialog = {
function stringSize(str, font) function stringSize(str, font)
{ {
var f = font || '12px arial', var f = font || '12px arial',
o = $('<div>' + this + '</div>') o = $('<div>' + str + '</div>')
.css({'position': 'absolute', 'float': 'left', 'white-space': 'nowrap', 'visibility': 'hidden', 'font': f}) .css({'position': 'absolute', 'float': 'left', 'white-space': 'nowrap', 'visibility': 'hidden', 'font': f})
.appendTo($('body')), .appendTo($('body')),
w = o.width(), w = o.width(),