mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-11-24 17:14:28 +01:00
[bug] fix edge rendering when page is scrolled
This commit is contained in:
parent
f43587e496
commit
f2b6aeedc5
@ -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({
|
||||
|
@ -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(".");
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user