jquery-resize icon indicating copy to clipboard operation
jquery-resize copied to clipboard

resize fire only once

Open noamberda opened this issue 13 years ago • 1 comments

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 avatar Aug 16 '11 04:08 noamberda

@noamberda, can you create a simplified test case on http://jsfiddle.net/ for this issue?

cowboy avatar Aug 16 '11 14:08 cowboy