소스 검색

Cool auto-size

master
Roderic Day 5 년 전
부모
커밋
7c632a9186
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      pico.js

+ 2
- 1
pico.js 파일 보기

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

Loading…
취소
저장