summaryrefslogtreecommitdiffstats
path: root/js/keyword-chooser.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/keyword-chooser.js')
-rw-r--r--js/keyword-chooser.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/js/keyword-chooser.js b/js/keyword-chooser.js
index afc90b491..3bbf1bee2 100644
--- a/js/keyword-chooser.js
+++ b/js/keyword-chooser.js
@@ -65,17 +65,8 @@ KeywordChooser.prototype =
positionChooser: function()
{
- if (this._positioned) {
- return;
- }
-
- var elemY = bz_findPosY(this._parent);
- var elemX = bz_findPosX(this._parent);
- var elemH = this._parent.offsetHeight;
-
- this._chooser.style.left = elemX + "px";
- this._chooser.style.top = elemY + elemH + 1 + "px";
-
+ if (this._positioned) return;
+ bz_overlayBelow(this._chooser, this._parent);
this._positioned = true;
},