Skip to content

Commit 13f6ffd

Browse files
author
Jonathan Lepolt
committedOct 28, 2014
Fixed issue with allowOverflow option
1 parent edcc420 commit 13f6ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎source/jquery.textfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285

286286
// Oops, something wrong happened!
287287
// We weren't supposed to exceed the original size
288-
if ((ourText.width() > maxWidth) ||
288+
if ((ourText.width() > maxWidth && !Opts.allowOverflow) ||
289289
(ourText.height() > maxHeight && !Opts.widthOnly && !Opts.allowOverflow)) {
290290

291291
ourText.css('font-size', oldFontSize);

0 commit comments

Comments
 (0)
Please sign in to comment.