diff options
author | zottel <github@zottel.net> | 2012-03-22 09:16:10 +0100 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-03-22 09:16:10 +0100 |
commit | 3f3c4aec79bf3ceedd551bae7cec7acfd68e3772 (patch) | |
tree | ae5af3e8b7dda429b744c70ea3fda111c30b15c3 /js | |
parent | 88bbc5e0bc89f84aaf5160546dfa782f8f1d7e5e (diff) | |
parent | 576eb6cc389d54c29b29b97d3c6d160e61bbf6ca (diff) | |
download | volse-hubzilla-3f3c4aec79bf3ceedd551bae7cec7acfd68e3772.tar.gz volse-hubzilla-3f3c4aec79bf3ceedd551bae7cec7acfd68e3772.tar.bz2 volse-hubzilla-3f3c4aec79bf3ceedd551bae7cec7acfd68e3772.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'js')
-rwxr-xr-x | js/fk.autocomplete.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js index 69fe77e8c..b1db92c41 100755 --- a/js/fk.autocomplete.js +++ b/js/fk.autocomplete.js @@ -14,22 +14,22 @@ function ACPopup(elm,backend_url){ this.kp_timer = false; this.url = backend_url; + var w = 530; + var h = 130; + + if(typeof elm.editorId == "undefined") { style = $(elm).offset(); w = $(elm).width(); h = $(elm).height(); } else { - style = $(elm.container).offset(); - w = elm.container.offsetWidth; - h = elm.container.offsetHeight; - // Quick fix for chrome until I get a tool to inspect the dom - // Chrome returns 0x0 - if(! w) - w = 530; - if(! h) - h = 130; - + var container = elm.getContainer(); + if(typeof container != "undefined") { + style = $(container).offset(); + w = $(container).width(); + h = $(container).height(); + } } style.top=style.top+h; |