Browse Source

Cool auto-size

master
Roderic Day 5 years ago
parent
commit
7c632a9186
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      pico.js

+ 2
- 1
pico.js View File

} }
const TextBox = { const TextBox = {
autoSize: () => { autoSize: () => {
textbox.rows = textbox.value.split('\n').length
textbox.style.height = `0px`
textbox.style.height = `${textbox.scrollHeight}px`
}, },
sendPost: () => { sendPost: () => {
if(textbox.value) { if(textbox.value) {

Loading…
Cancel
Save