Hi guys,
I've made a custom plugin that fills a div with text - as big as it can be (based on fittext) - it works the way I want - except for one thing...
You call the plugin like this:
At the bottom of the plugin I've got this line:
If I have a div ("big") that is 100% width and height of the body - and I call the plugin like this:
Then I use my plugin like this:
That works fine - if I resize or change the browser - the text resizes to fit the box.
BUT...
If I don't resize the browser - and do the following:
My plugin isn't called - as it only loads when the browser is resized. So my text is the wrong size.
So what I need is a way to "update" the function. Like...
or a way to update all elements that are using the plugin.
Thanks for any help.