jquery-resize
jquery-resize copied to clipboard
resize fire only once
Hi Ben, I am using your great solution but i have small problem. Somehow the resize event is fired only once when i set the container size. if i don't set the container size its working fine but i need to change it :).
here is the code i am using, very simple. rootContainer is a div that holds mapContainer. i am using the resize event to make the map container 100%. when i set the size on the mapContianer the event is not fired any more if there is a change is the size.
$(function () {
$("#rootContainer").resize(function () {
applyMapResize();
});
applyMapResize();
});
function applyMapResize() {
$("#mapContainer").height($("#rootContainer").height());
}
@noamberda, can you create a simplified test case on http://jsfiddle.net/ for this issue?