The solution are make a timer ... :)
function RidimenzionaDivContent() {
var header = 50;
var footer = 37;
var spacing = 60;
var WinSize = $('body').innerHeight();
var divSize = (WinSize - (header + footer + spacing));
var Hstr = "" + divSize + "px";
$("#content").animate({ height: Hstr }, 1000);
};
// $(window).bind('resize', function() {
// RidimenzionaDivContent();
// });
var resizeTimer = null;
$(window).bind('resize', function() {
if (resizeTimer) clearTimeout(resizeTimer);
resizeTimer = setTimeout(function(){RidimenzionaDivContent()}, 100);
});
$(window).bind('load', function() {
RidimenzionaDivContent();
});
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---