Hello, i have problem with resizing panel to fit label with long text. My code is this:
As you can see i use StringUtils to meashure text height and then i try to resize panel but no success. Panel do not resize.
Can you help?
B4X:
lblDescription.Text = m.Get("BookFullDescription")
lblDescription.TextSize = 18
Dim h As Int = stu.MeasureMultilineTextHeight(lblDescription, lblDescription.Text)
lblDescription.Height = h
pnlMain.Height =pnlMain.Height + h
As you can see i use StringUtils to meashure text height and then i try to resize panel but no success. Panel do not resize.
Can you help?
Last edited: