I have been creating a display for a coffee ordering system. The display shows 10 orders, but The screen size can be changed. I used this jQuery plugin textFill, and call it on a callback when the new orders are pulled in. For some reason, if my span tag, (or in my case p tag), contains a string without a space in, the text will appear a lot bigger than other "orders". I got round this by making sure there is a space included in the order string, but I'd still like to understand what was causing the problem.
Here is some example html of the order screen...
<div id="twitterSearch" class="tweets">
<div class="tweet">
<p class="text" >Cappuccino.................................MrTest</p>
</div>
<div class="tweet">
<p class="text" >Cappuccino....................................Bob</p>
</div>
<div class="tweet">
<p class="text" >Latte ....................................... Harry</p>
</div>
<div class="tweet">
<p class="text" >Black Americano ..................... Tanya</p>
</div>
<div class="tweet">
<p class="text" >Black Americano ................. Yogi</p>
</div>
<div class="tweet">
<p class="text" >Cappuccino .................................. Paul</p>
</div>
<div class="tweet">
<p class="text" >Cappuccino ................................... Tilda</p>
</div>
<div class="tweet">
<p class="text" >Cappuccino ................................ Sam</p>
</div>
<div class="tweet">
<p class="text" >Latte ....................................... Ryan</p>
</div>
In the above example, the first two tweets would have a much larger text size.
I tried to debug the plugin, but couldn't seem to get back a reported width change of the selected element during the changing of font size.