From: Alan Knowles Date: Fri, 11 Feb 2011 05:09:07 +0000 (+0800) Subject: Roo/BasicDialog.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=3879feb1b3bf59df3c3a77b6f0a7498137c4a29d Roo/BasicDialog.js --- diff --git a/Roo/BasicDialog.js b/Roo/BasicDialog.js index 9c26ab7349..e4df15e7e1 100644 --- a/Roo/BasicDialog.js +++ b/Roo/BasicDialog.js @@ -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; }