瀏覽代碼

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…
取消
儲存