()
| 1221 | }; |
| 1222 | |
| 1223 | function hiddenTextarea() { |
| 1224 | var te = elt("textarea", null, null, "position: absolute; padding: 0; width: 1px; height: 1em; outline: none"); |
| 1225 | var div = elt("div", [te], null, "overflow: hidden; position: relative; width: 3px; height: 0px;"); |
| 1226 | // The textarea is kept positioned near the cursor to prevent the |
| 1227 | // fact that it'll be scrolled into view on input from scrolling |
| 1228 | // our fake cursor out of view. On webkit, when wrap=off, paste is |
| 1229 | // very slow. So make the area wide instead. |
| 1230 | if (webkit) te.style.width = "1000px"; |
| 1231 | else te.setAttribute("wrap", "off"); |
| 1232 | // If border: 0; -- iOS fails to open keyboard (issue #1287) |
| 1233 | if (ios) te.style.border = "1px solid black"; |
| 1234 | disableBrowserMagic(te); |
| 1235 | return div; |
| 1236 | } |
| 1237 | |
| 1238 | TextareaInput.prototype = copyObj({ |
| 1239 | init: function(display) { |
no test coverage detected