Open colinl opened 1 month ago
The documentation is not entirely correct - resize()
and resizeItem()
are called when:
$("ol.list").editableList({})
$("ol.list").editableList("width", "100px")
$("ol.list").editableList("height", "100px")
OK, thanks. Yes, the docs are at least ambiguous.
Right - these callbacks are related to the physical space of the list, rather than changes to how many items are in the list. I'll transfer this over to the website repo so we remember to update the docs.
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
Environment