Skip to content

Commit

Permalink
reduce crazy large negative top value on hidden textarea (fixes #2362)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Feb 18, 2015
1 parent 60a1281 commit 16b542a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ace/keyboard/textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 = "";
Expand Down

0 comments on commit 16b542a

Please sign in to comment.