Improve hint behaviour in webkit
Change-Id: Ib0dd00e4c54764afc13423c5f514afb3f7cad4ce
diff --git a/dev/js/src/hint/input.js b/dev/js/src/hint/input.js
index adb74b6..e61d820 100644
--- a/dev/js/src/hint/input.js
+++ b/dev/js/src/hint/input.js
@@ -146,13 +146,14 @@
// Create mirror for searchField
// This is important for positioning
// if ((this._mirror = document.getElementById("searchMirror")) === null) {
- this._mirror = document.createElement("div");
- this._mirror.classList.add('hint', 'mirror');
- this._mirror.appendChild(document.createElement("span"));
- this._container = this._mirror.appendChild(document.createElement("div"));
- this._mirror.style.height = "0px";
- document.getElementsByTagName("body")[0].appendChild(this._mirror);
-// };
+ this._mirror = document.createElement("div");
+ this._mirror.classList.add('hint', 'mirror');
+ this._mirror.appendChild(document.createElement("span"));
+ this._container = document.createElement("div");
+ this._mirror.appendChild(this._container);
+ this._mirror.style.height = "0px";
+ document.getElementsByTagName("body")[0].appendChild(this._mirror);
+ // };
// Update position of the mirror
window.addEventListener('resize', this.reposition.bind(this));