Skip to content

Commit 60751b6

Browse files
committed
correct bug
1 parent 3fdd7f4 commit 60751b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.fittext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// Resizer() resizes items based on the object width divided by the compressor * 10
2222
var resizer = function () {
23-
$this.css('font-size', Math.min(obj.width() / (compressor*10), origFontSize));
23+
$this.css('font-size', Math.min($this.width() / (compressor*10), origFontSize));
2424
};
2525

2626
// Call once to set.

0 commit comments

Comments
 (0)