jQuery slideToggle flicker in Firefox

Posted by Stepppo on Stack Overflow See other posts from Stack Overflow or by Stepppo
Published on 2009-11-25T05:14:13Z Indexed on 2010/03/08 4:36 UTC
Read the original article Hit count: 720

Filed under:
|

I have a specific situation with slideToggle that creates a flicker in Firefox.

The situation was when the expanding element goes longer than the page and a vertical scrollbar appears in Firefox.

If you scroll down to read all of the text in the expanding element and then click on the trigger to close the element, Firefox would flash for a second and then the page readjusts and returns to its position before the expanded element was expanded. I have tried adding ‘return false;’ to no avail.

Here's a test page where you can see the effect in FF when you click to close the last item (Herbal Teas): http://pollak-labs.com/clients/birthyourself/?page_id=21

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about slidetoggle