Skip to content

Instantly share code, notes, and snippets.

@t-f-m
Created September 11, 2011 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-f-m/1209256 to your computer and use it in GitHub Desktop.
Save t-f-m/1209256 to your computer and use it in GitHub Desktop.
LDRizeのindicator表示位置バグ修正
diff --git a/LDRize_original.user.js b/LDRize.user.js
index c791643..2ba446f 100644
--- a/LDRize_original.user.js
+++ b/LDRize.user.js
@@ -437,7 +437,7 @@ LDRize.prototype = {
if(!p)return;
var i=this.img.indicator;
i.style.display = 'block';
- i.style.top = (p.y+this.getScrollHeight()-DEFAULT_HEIGHT) + 'px';
+ i.style.top = (p.y+this.scrollHeight) + 'px';
i.style.left = Math.max((p.x-this.indicatorMargin), 0) + 'px';
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment