code: function resizeHandler()
  			{
  				var viewPaneSize = mainWindow.getViewPaneSize();
  				shim && shim.setStyles( { width : viewPaneSize.width + 'px', height : viewPaneSize.height + 'px' } );
  				editor.resize( viewPaneSize.width, viewPaneSize.height, null, true );
  			}
docs: Saved resize handler function.