`StackPanel().isVertical = false` not working

Just want to make sure I’m doing this correctly or why it’s not working:

var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");
var panel = new BABYLON.GUI.StackPanel(); 
panel.isvertical = false;

But the buttons stay vertically aligned:

panel.isvertical = false;

Should be

panel.isVertical = false;

1 Like

Yes the example in the doc is isVertical but I was trying another example: Babylon.js Documentation

And unless it’s somewhere off screen I don’t see it when I do isVertical

Can you post a link to the playground please?

https://www.babylonjs-playground.com/#XCPP9Y#1211

Did you open your console? :slight_smile:

babylon.js:16 BJS - [23:57:59]: Control (Name:but, UniqueId:9) is using width in percentage mode inside a horizontal StackPanel
e._WarnEnabled @ babylon.js:16
babylon.js:16 BJS - [23:57:59]: Control (Name:but2, UniqueId:11) is using width in percentage mode inside a horizontal StackPanel

Children of a horizontal stackpanel must have a fixed width

1 Like

FFs, yeah I was looking at the console for errors, but didn’t understand, assumed the percentage was a default. Thank you Weird.

1 Like