From 3879feb1b3bf59df3c3a77b6f0a7498137c4a29d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 11 Feb 2011 13:09:07 +0800 Subject: [PATCH] Roo/BasicDialog.js --- Roo/BasicDialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2