Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1896266

Browse files
Merge pull request #2019 from livecode/bugfix-21379
[Bug 21379] [NavBar PI] Fix setting an itemName when more than 9 items
2 parents 80a7f28 + 0685e7c commit 1896266

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Toolset/palettes/inspector/editors/com.livecode.pi.editorlist.behavior.livecodescript

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
script "com.livecode.pi.editorList.behavior"
1+
script "com.livecode.pi.editorList.behavior" with behavior "revInspectorEditorBehavior"
22
local sNumChildren
33

44
constant kComponentSpacing = 6
@@ -117,7 +117,15 @@ on editorValueChanged
117117
repeat with x =1 to sNumChildren
118118
put the editorValue of group ("editor" & x) of me into tValueArray[x]
119119
end repeat
120-
combine tValueArray with tDelimiter
121-
set the editorValue of me to tValueArray
120+
121+
// TODO: Use 'combine tValueArray with tDelimiter' once we add sorting option to combine
122+
// See bug 9344
123+
local tList
124+
repeat for each element tElement in tValueArray
125+
put tElement & tDelimiter after tList
126+
end repeat
127+
delete char -1 of tList
128+
set the editorValue of me to tList
129+
122130
dispatch "updateProperty"
123131
end editorValueChanged

notes/bugfix-21379.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [NavBar PI] Fix setting an itemName when navbar has more than 9 items

0 commit comments

Comments
 (0)