BABYLON.GUI.StackPanel doesn't react to vertical alignment

hi
i’m a new comer and just starting my journey with webgl.
so i use documentation a lot.

i’ve noticed that stackpanel doesn’t respond to vertical alignment.
i don’t know if something has changed recently in the syntax and the documentation doesn’t cover it, or if this is a bug.

here is an example taken from docs

line 88:
panel.verticalAlignment = BABYLON.GUI.Control.VERTICAL_ALIGNMENT_BOTTOM;

HI!

It does just remove this:

    panel.isVertical = false;

r.

:vulcan_salute:

it also changes the layout of buttons from horizontal to vertical… don’t think that it’s a desirable behavior

i’ve expected to get result similar to below one

Use two panels like this panels:

The height of the inner panel must be explicitly set.

Cheers!

R.

:vulcan_salute:

2 Likes

that’s tricky.
thanks for the solution.

1 Like