Search the Community
Showing results for tags 'stackpanel'.
Found 2 results
I'm trying to wrap my head around the Canvas2D functionality and StackPanel. I'm having trouble figuring out how the layouts work. I modified a playground based on the stack panel example to use a vertical stack panel, but I can't seem to re-position it the way I want. My goal is to get the entire stack panel to center horizontally, and move to the top of the viewport so that the children list downward from the top with the first child at the top (green rectangle). http://babylonjs-playground.com/#CMZLC#17 Is the marginAlignment the wrong property to use altogether? I'm sure it is something simple that i'm doing wrong.