Roo/BasicDialog.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 21 Sep 2010 04:38:55 +0000 (12:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 21 Sep 2010 04:38:55 +0000 (12:38 +0800)
Roo/BasicDialog.js

index 5407443..8194b8f 100644 (file)
@@ -1175,7 +1175,7 @@ Roo.LayoutDialog = function(el, cfg){
         config = Roo.apply({}, el);
         // not sure why we use documentElement here.. - it should always be body.
         // IE7 borks horribly if we use documentElement.
-        el = Roo.get( document.body || document.documentElement).createChild();
+        el = Roo.get( Roo.isIE ? (document.body || document.documentElement) : (document.documentElement || document.body) ).createChild();
         //config.autoCreate = true;
     }