From 97e0eac60366fcf22055e7bd23f5bfffe76b7b87 Mon Sep 17 00:00:00 2001 From: Tracktl Date: Tue, 5 Aug 2014 15:53:45 +0200 Subject: [PATCH] inappbrowser _blank target position is fixed --- src/firefoxos/InAppBrowserProxy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/firefoxos/InAppBrowserProxy.js b/src/firefoxos/InAppBrowserProxy.js index 63a85e3..9e6e3e8 100644 --- a/src/firefoxos/InAppBrowserProxy.js +++ b/src/firefoxos/InAppBrowserProxy.js @@ -91,7 +91,8 @@ var IABExecs = { browserWrap.browser = browserElem; browserWrap.classList.add('inAppBrowserWrap'); - browserWrap.style.position = 'absolute'; + // position fixed so that it works even when page is scrolled + browserWrap.style.position = 'fixed'; browserElem.style.position = 'absolute'; browserElem.style.border = 0; browserElem.style.top = '60px';