projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9cad98
)
Fix offset in IE if not attaching knl to body.
author
Jan Schneider
<jan@horde.org>
Fri, 21 May 2010 14:31:33 +0000
(16:31 +0200)
committer
Jan Schneider
<jan@horde.org>
Fri, 21 May 2010 14:31:33 +0000
(16:31 +0200)
horde/js/keynavlist.js
patch
|
blob
|
history
diff --git
a/horde/js/keynavlist.js
b/horde/js/keynavlist.js
index
58c4c27
..
af6ec11
100644
(file)
--- a/
horde/js/keynavlist.js
+++ b/
horde/js/keynavlist.js
@@
-132,10
+132,12
@@
var KeyNavList = Class.create({
this.opts.onShow(this.div);
+ var delta = this.div.getOffsetParent().viewportOffset().relativeTo(this.opts.domParent.viewportOffset());
this.div.setStyle({ height: null, width: null, top: null }).clonePosition(this.base, {
setHeight: false,
setWidth: false,
- offsetTop: this.base.getHeight()
+ offsetLeft: delta[0],
+ offsetTop: this.base.getHeight() + delta[1]
});
if (this.div.visible()) {