I come from this thread "Center vertically text in BBCodeView".
It works in B4A but not in B4i.
I just change to pass the parameter base, because I use the BBCodeView in a panel.
I don't found this option in BBCodeView.
How to make it works in B4i?
Thanks in advance for any tips.
It works in B4A but not in B4i.
I just change to pass the parameter base, because I use the BBCodeView in a panel.
B4X:
Private Sub SetBBCodeViewPosition(base As B4XView)
If BBCodeView1.Paragraph.IsInitialized Then
Dim ContentHeight As Int = Min(BBCodeView1.Paragraph.Height / TextEngine.mScale + BBCodeView1.Padding.Top + BBCodeView1.Padding.Bottom, BBCodeView1.mBase.Height)
BBCodeView1.mBase.Height = ContentHeight
BBCodeView1.mBase.Top = base.Height / 2 - ContentHeight / 2
End If
End Sub
I don't found this option in BBCodeView.
How to make it works in B4i?
Thanks in advance for any tips.