roojs-debug.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 11 Feb 2011 05:09:46 +0000 (13:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 11 Feb 2011 05:09:46 +0000 (13:09 +0800)
roojs-debug.js

index dc5c451..a07d67f 100644 (file)
@@ -29678,7 +29678,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;
     }