IE7 / IE8 scroll bar not recalculating content height, when using .slideToggle();
Hi,
IE7 / IE8 scroll bar is not recalculating content height, when using .slideToggle(); so content panels when expanded are lost off the bottom of the page - see screenshot.
Has anyone else had this problem? What is the fix?
I have tested in Chrome, firefox, opera (it even works in IE6) just not IE 7 and 8...
I have attached a screenshot. The weird thing is the slider I am using for the areas causing the problem (pictured) I am using because they allow multiple instances of the slider on the page.
There is also an old one on the page also that does work in IE7 & 8 (the page expands as if there was new content in the page).
This page is a prototype so it is not perfect.
Here is the onload.js
- $(document).ready(function() {
-
- // This slider works and the content increases the scrollbar length in IE7 & 8
- $('#basic-proposal-details-slider').hide();
- $('#basic-proposal-details-toggle').click(function() {
- $('#basic-proposal-details-slider').slideToggle();
- $(this).toggleClass("active");
- $(this).text(($('#basic-proposal-details-toggle').text() == 'Hide Details') ? 'Show Details' : 'Hide Details');
- return false;
- });
- // The below slider functions DO NOT increase the scrollbar length in IE7 & 8
- /* SLIDERS FOR BUDGET FORMS */
-
- $("#2").hide();
- $("#3").hide();
-
- $(".staff-record-wrap").hide();
-
- $("div.budget-form-section-title").click(function(){
- $(this).next().slideToggle();
- });
-
- $("div.budget-form-section-title h4").click(function(){
- $(this).toggleClass("active");
- });
-
- /* SLIDER FOR STAFF RECORDS */
-
- $("div.staff-record").click(function(){
- $(this).next().slideToggle();
- });
-
- $("div.staff-record h4").click(function(){
- $(this).toggleClass("active");
- });
- });
This is totally baffling me especially since it works everywhere but IE 7 & 8. I hope someone knows what is going on... It a bit of UI blocker...
Thank you in advance.
Matt