1
0
mirror of synced 2024-11-22 21:16:10 +03:00

style detection for search field sizer corrected

Signed-off-by: Igor Vaynberg <igor.vaynberg@gmail.com>
This commit is contained in:
creage 2012-06-16 23:30:22 +03:00 committed by Igor Vaynberg
parent 492dccd1a5
commit 9497693b64

View File

@ -203,7 +203,7 @@
function measureTextWidth(e) { function measureTextWidth(e) {
if (!sizer){ if (!sizer){
var style = e.currentStyle || window.getComputedStyle(e, null); var style = e[0].currentStyle || window.getComputedStyle(e[0], null);
sizer = $("<div></div>").css({ sizer = $("<div></div>").css({
position: "absolute", position: "absolute",
left: "-1000px", left: "-1000px",