ESRI JavaScript API 1.6 and DOJO BorderContainer in Internet Explorer

When running an application that uses the Dojo Border Container and Content Panes for layout an invalid argument error occurs when the browser is resized. This only happens in Internet Explorer. Resizing with the previous events doesn't work. But there is a workaround to do it, provided by Kelly Hutchins. See here:

http://forums.esri.com/Thread.asp?c=158&f=2396&t=301691&mc=5#944410

The NIMBUS number is: NIM054763: She also provided an example HTML: ReziseTest.htm

The code looks like this:

// Apply patch to InfoWindow::resize method
(function(){
  var oldResize = esri.dijit.InfoWindow.prototype.resize;
  esri.dijit.InfoWindow.prototype.resize = function(width, height){
    if (!width || !height) {
      return;
    }
    oldResize.apply(this, arguments);
  };
}());

Advertisements