diff --git a/core/modules/startup/startup.js b/core/modules/startup/startup.js index 377974ad6..6bdb2e9a9 100755 --- a/core/modules/startup/startup.js +++ b/core/modules/startup/startup.js @@ -78,9 +78,7 @@ exports.startup = function() { // Host-specific startup if($tw.browser) { // Install the popup manager - $tw.popup = new $tw.utils.Popup({ - rootElement: document.body - }); + $tw.popup = new $tw.utils.Popup(); // Install the animator $tw.anim = new $tw.utils.Animator(); } diff --git a/core/modules/utils/dom/popup.js b/core/modules/utils/dom/popup.js index c29ad5400..7ee405d20 100644 --- a/core/modules/utils/dom/popup.js +++ b/core/modules/utils/dom/popup.js @@ -18,7 +18,7 @@ Creates a Popup object with these options: */ var Popup = function(options) { options = options || {}; - this.rootElement = options.rootElement || document.body; + this.rootElement = options.rootElement || document.documentElement; this.popups = []; // Array of {title:,wiki:,domNode:} objects };