can you please check if the child component is getting added
behind some other component in the canvas, due to the X and Y
values of the child component. May be you can try replacing canvas
with VBox and check out if the children are getting added to the
container when the state changes.
Hope this helps.