diff --git a/trunk8.js b/trunk8.js index 1e58fbc..9a24453 100644 --- a/trunk8.js +++ b/trunk8.js @@ -208,9 +208,13 @@ } else if (!isNaN(width)) { bite_size = length - width; - + + if (bite_size < 0) { + return; + } + bite = utils.eatStr(str, side, bite_size, fill); - + this.html(bite); if (settings.tooltip) {