AnsweredAssumed Answered

Map resize event not firing

Question asked by xupla on Apr 1, 2014
Latest reply on Apr 1, 2014 by geonetadmin
I am using jQWidgets splitter for my map component I have on panel with the map component and the other with other data.


I want that my map resizing accordingly as the user moves the panel. My problem is that the 'resize' for the map div is not firing.

This is the html code I am using:

 <div id="mainSplitter">
            <div class="splitter-panel">        
                <div id="mapDiv">              
            <div class="splitter-panel">

JavaScript Code:

var resizeTimer;
            map.on("load", function (theMap) {

                dojo.connect(dom.byId("mapDiv"), 'resize', function () {
                    //resize the map if the div is resized
                    resizeTimer = setTimeout(function () {

I have tried to do it with the click event of the "mapDiv" and it worked, and I can't figure out why its not working on the resizing. Any ideas on how this could be implemented please? Thanks