aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-01-16 01:26:31 +0800
committerJez Ng2012-01-16 02:46:34 +0800
commit012fade804efdcd6e551ba26e2cea6d906e8bb18 (patch)
treefd84a8d6e7d5220346b29f3f3d0379c9a9a5e7bb
parentfbdff8626a8db7be33a6b7790a35e48c4c5231aa (diff)
downloadvimium-012fade804efdcd6e551ba26e2cea6d906e8bb18.tar.bz2
Position completionDialog correctly. Closes #441.
Previously, we were taking the dimensions of the dialog while it still had "display: none;", which caused clientWidth and clientHeight to return zero.
-rw-r--r--completionDialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/completionDialog.js b/completionDialog.js
index fae034fd..f264eb2a 100644
--- a/completionDialog.js
+++ b/completionDialog.js
@@ -14,7 +14,6 @@
handlerStack.push({ keydown: this.onKeydown });
render.call(this);
clearInterval(this._tweenId);
- this.container.style.display = "";
this._tweenId = Tween.fade(this.container, 1.0, 150);
}
},
@@ -92,6 +91,7 @@
this.completions = completions;
var container = this.getDisplayElement();
clearChildren(container);
+ container.style.display = "";
if (searchString === undefined) {
this.container.className = "vimium-dialog";