i’m facing problems to align some GUI control.
In my project i have a grid with some row. In some row i have to align a TextBlock with an input: the goal is to use the TextBlock as a label for the input control, so the input control has to be aligned after the textBlock.
This is my PG:Babylon.js Playground
I try to calculate the width of the text block and then placing the input using
leftInPixels, but it seems not to work.
What’s the best practice to do that?
Thank’s in advance
EDIT: i’ve added some logs: https://playground.babylonjs.com/#L3L73N#1
Why in the logged object
widthInPixels has the right value but i read always zero?