Explorar el Código

Cool auto-size

master
Roderic Day hace 5 años
padre
commit
7c632a9186
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      pico.js

+ 2
- 1
pico.js Ver fichero

@@ -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) {

Cargando…
Cancelar
Guardar