diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2012-03-22 14:56:23 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2012-03-22 14:56:23 +0100 |
commit | d5a6e7b1767ebc337f31745984f1ce0904b77780 (patch) | |
tree | 29355722fb8a3e993884e852a254277c80e90de4 /js/fk.autocomplete.js | |
parent | e193091dfe348c5430c3a303947dbe7a6eced374 (diff) | |
parent | 622b25df5f2d1ab21c9e23047bc0c98bfe72bad0 (diff) | |
download | volse-hubzilla-d5a6e7b1767ebc337f31745984f1ce0904b77780.tar.gz volse-hubzilla-d5a6e7b1767ebc337f31745984f1ce0904b77780.tar.bz2 volse-hubzilla-d5a6e7b1767ebc337f31745984f1ce0904b77780.zip |
Merge remote-tracking branch 'friendica/master'
Diffstat (limited to 'js/fk.autocomplete.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; |