diff --git a/src/js/edge.js b/src/js/edge.js index dcd1622a..9b5b7b7f 100644 --- a/src/js/edge.js +++ b/src/js/edge.js @@ -21,11 +21,13 @@ var edge = (function() { options = helper.applyOptions(options, override); }; var _resize = function() { + var scrollTop = document.documentElement.scrollTop; + var scrollLeft = document.documentElement.scrollLeft; var rect = options.element.getBoundingClientRect(); _currentEdge.style.width = rect.width + "px"; _currentEdge.style.height = rect.height + "px"; - _currentEdge.style.top = rect.top + "px"; - _currentEdge.style.left = rect.left + "px"; + _currentEdge.style.top = rect.top + scrollTop + "px"; + _currentEdge.style.left = rect.left + scrollLeft + "px"; }; var _makeEdge = function() { helper.setObject({ diff --git a/src/js/version.js b/src/js/version.js index 989b08c5..76598fa2 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "3.30.3"; + var current = "3.30.4"; var compare = function(a, b) { var pa = a.split("."); diff --git a/src/manifest.json b/src/manifest.json index 50c4d870..fb820e15 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "nightTab", "short_name": "nightTab", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", - "version": "3.30.3", + "version": "3.30.4", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"