FitText's Resize only works after page resizing in jQuery Mobile

2

I'm working on a project with jQuery Mobile and I'm using the resize text plugin FitText. The plugin works fine except that in jQuery Mobile, where I have several pages in a single HTML file, when I change pages, the resize plugin does not arrow the sizes I put . It only works if I start resizing the page.

My problem is just like that I found in Stack Overflow, but the topic is unanswered. How to solve this?

    
asked by anonymous 26.03.2014 / 14:41

2 answers

1

This seems to be a plugin problem, which calls the resize () function before the DOM is ready. Here's a solution: link

    
26.03.2014 / 15:28
0

Ever tried jQuery mobile built in 'reminder VCLIQUE' 300ms delay feature to commit. Using this, you can omit using FastClick. Because Fastclick does the same thing, eliminating the 300ms delay. You are not having any problems with jQuery Mobile and FitText. So you will not feel any problem using 'VCLICK' and FitText together. You will not have to face many problems. Here is an example.

$("#element").bind('vclick', function(event) {
   decrementInput(this.id);event.preventDefault();
});
    
27.03.2014 / 13:11