Bizarre situation with component creation order
-
I have three components being created back to back:
local dataTableContainer = Content.addPanel(namePrefix + "DataTableContainer", 0, 0); local dataTable = Content.addViewport(namePrefix + "DataTable", 0, 0); local dataTableClickHeader = Content.addPanel(namePrefix + "DataTableClickHeader", 0, 0);
This has been in the script for weeks and working fine for creating the proper order of the components in the Component List.
Today, it is now creating them in the wrong order:
The dataTableClick header always needs to be created last here, so it can be in the proper ZLevel (above the dataTable).
I have no clue how this has happened, and hence I am not sure what would fix the creation order.
Ideas? -
@VirtualVirgin
Ok, I solved it.
The issue had to do with the order that the components were being then assigned to the parent container, which effects their order in the Component List.