From 5290e350b8cb60e1ecae701d6f81c6ec8d448fdc Mon Sep 17 00:00:00 2001 From: Michael Phillips Date: Fri, 22 Feb 2013 18:12:28 -0500 Subject: [PATCH] Added fittexted class to items affected This is used so you can have pre- and post-fittext styles (e.g. hide until fittexted and then show) --- jquery.fittext.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.fittext.js b/jquery.fittext.js index 1864f08..8363782 100644 --- a/jquery.fittext.js +++ b/jquery.fittext.js @@ -28,6 +28,7 @@ // Resizer() resizes items based on the object width divided by the compressor * 10 var resizer = function () { $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); + $this.addClass('fittexted'); }; // Call once to set. @@ -40,4 +41,4 @@ }; -})( jQuery ); \ No newline at end of file +})( jQuery );