Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced bounding box calculation code with Mozilla developed function.

  • Loading branch information...
commit 3ccabc66df6ddd752f593b0dbab53bb719baa3d8 1 parent 1d0cc13
@psychoticmeow psychoticmeow authored
Showing with 2 additions and 17 deletions.
  1. +1 −16 chrome/content/browser.js
  2. +1 −1  install.rdf
View
17 chrome/content/browser.js
@@ -20,22 +20,7 @@ var abduction = function(target, label) {
};
var get_position = function(element) {
- var result = {
- top: element.offsetTop,
- left: element.offsetLeft,
- width: element.offsetWidth,
- height: element.offsetHeight
- };
- var parent = element.offsetParent;
-
- while (parent != null) {
- result.left += parent.offsetLeft;
- result.top += parent.offsetTop;
-
- parent = parent.offsetParent;
- }
-
- return result;
+ return element.getBoundingClientRect();
};
var scroll_to_y = function(min_y, max_y) {
View
2  install.rdf
@@ -60,7 +60,7 @@
</em:localized>
<em:name>Abduction!</em:name>
- <em:version>3.0.10</em:version>
+ <em:version>3.0.11</em:version>
<em:description>Lets you capture an image of a web page, select the part you want and save it.</em:description>
<em:homepageURL>http://github.com/rowan-lewis/abduction</em:homepageURL>
<em:iconURL>chrome://abduction/content/icon.png</em:iconURL>
Please sign in to comment.
Something went wrong with that request. Please try again.