Slidetoggle + JQuery + IE 7 = Bug!

I came across an annoying JQuery issue when using the most excellent .slideToggle() method. The issue is that when implemented in IE 7 the text that is being hidden will indent, see this link for more details.

Being intrepid and not liking the height:101% work around, it made the slide closed animation uneven, I used a much more nefarious technique. In my configuration, I am making a summary show/hide and an expanded version show/hide. To work around the slideToggle issue I set min-height on the smaller div (summary) to 0px and height 100% on the larger div (expanded). It works like a charm.

YMMV but this is how I fixed it for the browsers that matter to me.

Comments

Replied

Thanks for the solution.

Thanks for the solution. Works like a charm. Just had to make a change to the height to 1px so it won't "Jump" open on the first run. Setting it to '1px' fixed it for me.tv for rv

Replied

Good post, there seems to be

Good post, there seems to be a bug with slideToggle + IE + positioned elements. One can either use the 101% height or toggle instead of slideToggle. home theater wall plate

Replied

burberry sunglasses I used to

burberry sunglasses I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post

Replied

The main idea of online

The main idea of online shopping is not just in having a good looking website that could be listed in a lot of search engines or the art behind the site. It also is not only just about disseminating information, because it is also about building relationships and making money. pittsburgh carpet Mostly, organizations try to adopt techniques of online shopping without understanding these techniques and/or without a sound business model. Rather than supporting the organization's culture and brand name, the website should satisfy consumer's expectations.

Replied

Liked the way Green GT is

Liked the way Green GT is working for the future electric cars, but are they more environment friendly? With the depletion in non renewable resources in next coming 15-20 years, can we have this as an option to run on renewable energy... Also, how safe are these to drive on roads in US. Does this involve any safety driving rules for the drivers and help them drive defensively. ptcl duplicate bill