projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb87486
)
bugfix de la fonction getObjectTop.
author
Benoît Pin
<benoit.pin@gmail.com>
Fri, 26 Nov 2010 21:09:58 +0000
(22:09 +0100)
committer
Benoît Pin
<benoit.pin@gmail.com>
Fri, 26 Nov 2010 21:09:58 +0000
(22:09 +0100)
skins/ajax_scripts/DHTMLapi.js
patch
|
blob
|
history
diff --git
a/skins/ajax_scripts/DHTMLapi.js
b/skins/ajax_scripts/DHTMLapi.js
index
c45a914
..
41e49f3
100755
(executable)
--- a/
skins/ajax_scripts/DHTMLapi.js
+++ b/
skins/ajax_scripts/DHTMLapi.js
@@
-161,7
+161,9
@@
function getObjectLeft(obj) {
function getObjectTop(obj) {
var elem = getRawObject(obj);
var result = 0;
- if (document.defaultView) {
+ if (elem.offsetTop) {
+ result = elem.offsetTop;
+ } else if (document.defaultView) {
var style = document.defaultView;
var cssDecl = style.getComputedStyle(elem, "");
result = cssDecl.getPropertyValue("top");