node-red / node-red/node-red.github.io
docs: clarify editableList resize* callbacks are related to physical size, not item count
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 118
- フォーク
- 161
- 平均マージ
- 8時間 18分
- マージ済み PR(30日)
- 4
説明
Current Behavior
It appears that the resize() and resizeItem() callbacks on editableList do not get called as they should when an item is added or removed from the list, unless I am misunderstanding the docs.
resize() does get called when the node dialog is initially opened, but not thereafter and resizeItem seems never to be called at all.
I have not attempted to use them before so don't know whether they have ever worked.
See also forum post https://discourse.nodered.org/t/problem-with-editablelist-resize-callback/88263 where @marcus-j-davies confirms the behaviour (of resize at least).
Expected Behavior
No response
Steps To Reproduce
No response
Example flow
paste your flow here
Environment
- Node-RED version: 3.1.9 and 4.0.0-beta.3
- Node.js version: 20.5.1
- npm version:
- Platform/OS:
- Browser: Edge on Ubuntu
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue にリンクされている editableList の resize オプションのドキュメントから始め、関連するフォーラムの議論を確認してください。resize() および resizeItem() コールバックは項目数ではなく物理的なサイズに関するものであることを明確にし、Issue とフォーラム投稿で説明されている確認済みの動作と一致した時点で、ドキュメント化された動作は完全なものとみなしてください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100