StackPanel isVertical defaults to true

The documentation in https://doc.babylonjs.com/how_to/gui#stackpanel says isVertical default to false, but the code for StackPanel actually defaults it to true

Edit: I should add that it’s unclear which should change, the Panel code or the docs. See comments below.

How do you feel about making the correction Easy Doc Editing

I don’t mind. One question is “which change”. Poking around, StackPanel3D defaults to false, and virtually every complex element (colorpicker, keyboard, things that combine a label with a control, etc) make the StackPanel they create horizontal.
At the very least, I’d think StackPanel and StackPanel3D should be the same! :thinking:

1 Like

I think we need to ask @Deltakosh what he prefers for this one! :slightly_smiling_face:

1 Like

It’s easy to answer I think: you can’t make breaking changes, so you should update the doc :wink:

1 Like

Correct :smiley:

1 Like

Indeed, good point. I submitted a PR for the change to the docs.

1 Like

Merged! Thanks a ton team!