Skip to content

Commit

Permalink
Fix Buttons not showing when the Buttongrid is inside a Frame (#3783)
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng authored Jul 30, 2024
1 parent 69ffbcb commit 295c2a8
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@ class WidgetDataSource {
.filter { w -> w.parentId == null }
.map { w -> w.id }
.toSet()
return allWidgets
.filter { w -> w.parentId == null || w.parentId in firstLevelWidgetIds }
val secondLevelWidgetIds = allWidgets
.filter { w -> w.parentId in firstLevelWidgetIds }
.map { w -> w.id }
.toSet()
return allWidgets.filter { w ->
w.parentId == null ||
w.parentId in firstLevelWidgetIds ||
w.parentId in secondLevelWidgetIds && w.type == Widget.Type.Button
}
}

fun setSourceJson(jsonObject: JSONObject) {
Expand Down

0 comments on commit 295c2a8

Please sign in to comment.