Roo/BasicDialog.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 11 Feb 2011 05:09:07 +0000 (13:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 11 Feb 2011 05:09:07 +0000 (13:09 +0800)
Roo/BasicDialog.js

index 9c26ab7..e4df15e 100644 (file)
@@ -1177,7 +1177,8 @@ 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( Roo.isIE ? (document.body || document.documentElement) : (document.documentElement || document.body) ).createChild();
+        // webkit also does not like documentElement - it creates a body element...
+        el = Roo.get( document.body || document.documentElement ).createChild();
         //config.autoCreate = true;
     }