From 16b542aea4c0fa584d2af5633976158c3c58d335 Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 18 Feb 2015 23:17:05 +0400 Subject: [PATCH] reduce crazy large negative top value on hidden textarea (fixes #2362) --- lib/ace/keyboard/textinput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index faf73a4a..38fe0923 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -51,7 +51,7 @@ var TextInput = function(parentNode, host) { text.setAttribute("spellcheck", false); text.style.opacity = "0"; - if (useragent.isOldIE) text.style.top = "-100px"; + if (useragent.isOldIE) text.style.top = "-1000px"; parentNode.insertBefore(text, parentNode.firstChild); var PLACEHOLDER = "\x01\x01"; @@ -77,7 +77,7 @@ var TextInput = function(parentNode, host) { }); this.focus = function() { text.style.position = "fixed"; - text.style.top = "-10000000px"; + text.style.top = "-1000px"; text.focus(); setTimeout(function() { text.style.position = "";