reduce crazy large negative top value on hidden textarea (fixes #2362)
This commit is contained in:
parent
60a1281708
commit
16b542aea4
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ var TextInput = function(parentNode, host) {
|
||||||
text.setAttribute("spellcheck", false);
|
text.setAttribute("spellcheck", false);
|
||||||
|
|
||||||
text.style.opacity = "0";
|
text.style.opacity = "0";
|
||||||
if (useragent.isOldIE) text.style.top = "-100px";
|
if (useragent.isOldIE) text.style.top = "-1000px";
|
||||||
parentNode.insertBefore(text, parentNode.firstChild);
|
parentNode.insertBefore(text, parentNode.firstChild);
|
||||||
|
|
||||||
var PLACEHOLDER = "\x01\x01";
|
var PLACEHOLDER = "\x01\x01";
|
||||||
|
|
@ -77,7 +77,7 @@ var TextInput = function(parentNode, host) {
|
||||||
});
|
});
|
||||||
this.focus = function() {
|
this.focus = function() {
|
||||||
text.style.position = "fixed";
|
text.style.position = "fixed";
|
||||||
text.style.top = "-10000000px";
|
text.style.top = "-1000px";
|
||||||
text.focus();
|
text.focus();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
text.style.position = "";
|
text.style.position = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue