When I increase window size, map resize event fires and map.extent updates accordingly, but when I reduce window size, map resize event doen't fire at all and map.extent doesn't update.
Can you post your code? This example issues the resize event when the browser window size changes (larger or smaller).
Sorry for being so, so late. I've confirmed that with your code everything is working fine. I've review my code and noticed that my problem is related to HTML, not the API. The actual problem is that I'm using CSS table layout with display:table, display:table-row, display:table-cell and so on. My div "map" is really a table-cell and I don't know why when I reduce the height of the window it doesn't get reflected in the table-cell, but only when I reduce height (when reducing width everything works fine). I will go to stackoverflow, but in case you're interested, this is the fiddle (https://jsfiddle.net/e14v9dnw/2/). Take a look at the console of chrome or firebug to see the results of console.log("New extent: ", extent).
Thanks in advance
Retrieving data ...