node-red / node-red/node-red.github.io

docs: clarify editableList resize* callbacks are related to physical size, not item count

未關閉
#355 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
JavaScript
星號
118
分支
161
平均合併
8 小時 18 分鐘
30 天內合併 PR
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

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 issue 中連結的 editableList resize 選項文件開始,並查看相關的論壇討論。明確說明 resize() 和 resizeItem() 回呼涉及的是實體大小,而不是項目數量;當其與 issue 和論壇貼文中所描述的已確認行為一致時,即可認為文件中描述的行為已經完整。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。