()
| 1167 | }; |
| 1168 | |
| 1169 | function hiddenTextarea() { |
| 1170 | var te = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none"); |
| 1171 | var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); |
| 1172 | // The textarea is kept positioned near the cursor to prevent the |
| 1173 | // fact that it'll be scrolled into view on input from scrolling |
| 1174 | // our fake cursor out of view. On webkit, when wrap=off, paste is |
| 1175 | // very slow. So make the area wide instead. |
| 1176 | if (webkit) te.style.width = "1000px"; |
| 1177 | else te.setAttribute("wrap", "off"); |
| 1178 | // If border: 0; -- iOS fails to open keyboard (issue #1287) |
| 1179 | if (ios) te.style.border = "1px solid black"; |
| 1180 | disableBrowserMagic(te); |
| 1181 | return div; |
| 1182 | } |
| 1183 | |
| 1184 | TextareaInput.prototype = copyObj({ |
| 1185 | init: function(display) { |
no test coverage detected