-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Description
Hello,
Thanks for this nice tool! :-)
One issue still I have:
If I do a textFit for an array : textFit(document.getElementsByClassName('box'));
It does not work.
But if I do a textFit to an element only it works:
textFit(document.getElementsByClassName('box')[0]);
Would you have any idea why?
I am using Chrome. Here is my code:
<div data-role="page" id="main" class="cl_main_page">
<div data-role="content">
<div class="responsive_levelbackground"><span>Shop</span></div>
<div class="responsive_levelbackground lbl" id="f0"></div>
<div class="responsive_levelbackground lbl" id="f1"></div>
<div class="responsive_levelbackground lbl" id="f2"></div>
<div class="responsive_levelbackground lbl" id="f3"></div>
<div class="responsive_levelbackground lbl" id="f4"></div>
<div class="responsive_levelbackground">Online Quizz</div>
</div><!-- /content -->
</div><!-- /page -->
(I have text being filled into DIvs depending on IDs too..)
Then
textFit(document.getElementsByClassName('responsive_levelbackground'));
does not work
but textFit(document.getElementsByClassName('responsive_levelbackground')[0]);
textFit(document.getElementsByClassName('responsive_levelbackground')[1]);
...
work fine..
Thank you
Metadata
Metadata
Assignees
Labels
No labels