Percentage works if the grid is static. For some reason, it appears it does not work on dynamic resize of the container. Except when the resize comes from the resize of the advancedDynamicTexture layer. Not sure why, but currently, that’s what it seems to be.
- Can i use the first row as complete row, because it seems to be cut, due to the additional column that is added afterwards.
Not just like that. You would need to either override the column of the grid or I’d rather recommend to have your title as a textBlock eventually in a container (rectangle) and start with your grid underneith.
- What did not work aswell was making left column and headline bold, i used fontWeight or fontStyle=‘font-weight:bold’ (CSS).
So, it would be
button.fontWeight = “bold”;
(single or double quotes) but I usually prefer setting it like this
fontFamily = “Arial bold”;
- Recognized you changed Infobox (Rectangle) to linkWithMesh. Is that necessary?
I guess not, I just reinstated all from ‘linkedWithMesh’ in your PG. I have to admit I didn’t really read the full code.
No, that’s the same issue as above or when you tried using adapt to children. It doesn’t work dynamically with the height of a textBlock with resizeToFit…
I guess the other solution, would be to put everything in a bigger transparent container and add 1 more row to the grid set to a height of 1 and without ‘true’. This will fill-in the remaining space.
Edit: There’s another solution to resize the external container (the green rectangle) to fit your content but it involves to calculate the total width and height (it’s js not bjs) and is a bit complex. Also since the tooltip sort of pops-up while scaling, I am really not sure of what it will do (and I cannot help with this, sry. This is beyond my expertise). I believe Ican point you towards the link if you want to give it a try.
Edit2: Got it. But be prepared to a long journey