From 48bd448958a7c947a8382a30b9725922747020e5 Mon Sep 17 00:00:00 2001 From: Michi Date: Fri, 22 Aug 2014 23:41:39 -0700 Subject: [PATCH] re-added comment erased by accident --- src/jquery.boxfit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jquery.boxfit.js b/src/jquery.boxfit.js index 7a8b917..bfea547 100644 --- a/src/jquery.boxfit.js +++ b/src/jquery.boxfit.js @@ -74,6 +74,8 @@ } // fixing issue where custom line-heights would break wrapped text inner_span.css('line-height', '100%'); + + // keep growing the target so long as we haven't exceeded the width or height inner_span.css('font-size', settings.minimum_font_size); while ($(this).width() <= original_width && $(this).height() <= original_height) { if (current_step++ > settings.step_limit) {