From 6b1e90fbc7215372c7f0c5b1dd5c16aed038e517 Mon Sep 17 00:00:00 2001 From: Matthew Kastor Date: Mon, 1 Apr 2013 00:12:56 -0400 Subject: [PATCH] fixed position to avoid scrolling away The overlay menu should remain visible when scrolling a long page. The intention is to present information on demand and not leave the menu on screen. If allowed to scroll away the remaining element could interfere with the page. --- lib/ace/ext/overlay_page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/ext/overlay_page.js b/lib/ace/ext/overlay_page.js index 3cd7efec..c6639fe5 100644 --- a/lib/ace/ext/overlay_page.js +++ b/lib/ace/ext/overlay_page.js @@ -46,9 +46,9 @@ module.exports.overlayPage = function overlayPage (contentElement, top, right, b var contentContainer = document.createElement('div'); closer.style.cssText = 'margin: 0; padding: 0; ' + - 'position: absolute; top:0; bottom:0; left:0; right:0;' + + 'position: fixed; top:0; bottom:0; left:0; right:0;' + 'z-index: 9990; ' + - 'background-color: rgba(0, 0, 0, 0.1);'; + 'background-color: rgba(0, 0, 0, 0.2);'; closer.addEventListener('click', function () { closer.parentNode.removeChild(closer); closer = null;