Przeglądaj źródła

Cool auto-size

master
Roderic Day 5 lat temu
rodzic
commit
7c632a9186
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      pico.js

+ 2
- 1
pico.js Wyświetl plik

@@ -161,7 +161,8 @@ const scrollIntoView = (vnode) => {
}
const TextBox = {
autoSize: () => {
textbox.rows = textbox.value.split('\n').length
textbox.style.height = `0px`
textbox.style.height = `${textbox.scrollHeight}px`
},
sendPost: () => {
if(textbox.value) {

Ładowanie…
Anuluj
Zapisz