vigigraph / patches / 001_qooxdoo_getBoxObjectFor.diff @ 6bc71ab2
History | View | Annotate | Download (782 Bytes)
1 |
--- javascript/qooxdoo-0.7.3-sdk/frontend/framework/source/class/qx/html/Location.js.old 2010-04-20 14:18:32.000000000 +0200
|
---|---|
2 |
+++ javascript/qooxdoo-0.7.3-sdk/frontend/framework/source/class/qx/html/Location.js 2010-04-20 14:42:14.000000000 +0200
|
3 |
@@ -419,7 +419,7 @@
|
4 |
getPageAreaLeft : qx.core.Variant.select("qx.client",
|
5 |
{ |
6 |
"gecko" : function(el) { |
7 |
- return el.ownerDocument.getBoxObjectFor(el).x;
|
8 |
+ return el.getBoundingClientRect().left;
|
9 |
}, |
10 |
|
11 |
"default" : function(el) { |
12 |
@@ -439,7 +439,7 @@
|
13 |
getPageAreaTop : qx.core.Variant.select("qx.client",
|
14 |
{ |
15 |
"gecko" : function(el) { |
16 |
- return el.ownerDocument.getBoxObjectFor(el).y;
|
17 |
+ return el.getBoundingClientRect().top;
|
18 |
}, |
19 |
|
20 |
"default" : function(el) { |