Skip to content

Commit f2b6aee

Browse files
committed
[bug] fix edge rendering when page is scrolled
1 parent f43587e commit f2b6aee

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

‎src/js/edge.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ var edge = (function(){
2121
options=helper.applyOptions(options,override);
2222
};
2323
var_resize=function(){
24+
varscrollTop=document.documentElement.scrollTop;
25+
varscrollLeft=document.documentElement.scrollLeft;
2426
varrect=options.element.getBoundingClientRect();
2527
_currentEdge.style.width=rect.width+"px";
2628
_currentEdge.style.height=rect.height+"px";
27-
_currentEdge.style.top=rect.top+"px";
28-
_currentEdge.style.left=rect.left+"px";
29+
_currentEdge.style.top=rect.top+scrollTop+"px";
30+
_currentEdge.style.left=rect.left+scrollLeft+"px";
2931
};
3032
var_makeEdge=function(){
3133
helper.setObject({

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="3.30.3";
3+
varcurrent="3.30.4";
44

55
varcompare=function(a,b){
66
varpa=a.split(".");

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "3.30.3",
5+
"version": "3.30.4",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)