reduce crazy large negative top value on hidden textarea (fixes #2362)

This commit is contained in:
nightwing 2015-02-18 23:17:05 +04:00
commit 16b542aea4

View file

@ -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 = "";