Showing posts with label div. Show all posts
Showing posts with label div. Show all posts

Thursday, January 12, 2012

jQuery $(window).resize() not working when decreasing window's height


I have a div with an id "main", I want to set its height using jQuery and making so that on window.resize its height is modified using a function but for some reason it works well only when increasing window's height, when decreasing it it doesn't work.