ソースを参照

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

読み込み中…
キャンセル
保存