B
bcseyes
New Member
Howdy,
I'm trying to create a section that will expand and collapse using a button and jQuery.animate (in an html widget). Everything is working, but I'm having an issue with getting the correct initial height of the section. The height being returned by jQuery for the section is larger than the contents of the section. This leaves a large section of white space at the bottom of the section being expanded. The section contains several inner sections with the intent being to hide all but 5 until the button is pressed.
For testing, I start it out with the section expanded and it renders correctly (no extra white space at the bottom). When I collapse the section then expand it again, the extra white space at the bottom shows because the height I'm getting is too tall.
I'm using jQuery("#qa_column").height();.
Any suggestions would be appreciated.
Thanks,
-John
I'm trying to create a section that will expand and collapse using a button and jQuery.animate (in an html widget). Everything is working, but I'm having an issue with getting the correct initial height of the section. The height being returned by jQuery for the section is larger than the contents of the section. This leaves a large section of white space at the bottom of the section being expanded. The section contains several inner sections with the intent being to hide all but 5 until the button is pressed.
For testing, I start it out with the section expanded and it renders correctly (no extra white space at the bottom). When I collapse the section then expand it again, the extra white space at the bottom shows because the height I'm getting is too tall.
I'm using jQuery("#qa_column").height();.
Any suggestions would be appreciated.
Thanks,
-John