Color Picker Responsive to Window Width

I’ve set the GUI Stack panel to 100% and added a color picker to it.

I want the color picker to be 100% so it will be large and adapt to mobile device screen size.

I can only set it to a fixed pixel width, which doesn’t resize.

Can the color picker take percentage sizes?

https://www.babylonjs-playground.com/#4216U6

Found it, have to use:
BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”);

not
BABYLON.GUI.StackPanel();

for responsive GUI

2 Likes