It doesn’t take into account STextblocks but if I place that into a SButton it works.
Something like this. But I don’t want to use SButton cause I don’t have any click functionality needed. So can I replace it with anything else but have the same functionality?
Well its my fault. I first thought the SBorder changes its size based on the content present inside it. Well i was partially correct. But I didn’t knew we have to add .padding to it to work good.