List two checkboxes vertically

Hey,
I’m trying to list two checkboxes vertically, but the second checkbox isn’t showing… :thinking:
https://playground.babylonjs.com/#65QHT7
image
I’ve tried to add “TextBlock” instead of using “AddHeader”, but it keeps showing warnings:
“Control (Name:undefined, UniqueId:10) is using width in percentage mode inside a horizontal StackPanel”
Any idea?
Thanks! :grinning:

I build an example for you: :slightly_smiling_face:

You were on the right track with using TextBlocks but keep the following in mind: :face_with_monocle:

The StackPanel is a control which stacks its children based on its orientation (can be horizontal or vertical). All children must have a defined width or height (depending on the orientation) in pixels (A warning will be written to the console if this is not true).

3 Likes

Got it. Thanks! :grinning: