iOS Question Safearea when using B4xpages

james_sgp

Active Member
Licensed User
Longtime User
Hi,
I`ve create a B4X app (B4a & B4i), but I`m having a problem with a bottom ASAdvancedTabMenu menu not showing correctly on IPhone 14 (bottom is hidden), it looks fine on iPhone SE. So I`m guessing (rightly or wrongly) is related to the safearea?

Can someone advise how I find the usable area so I can move the ASAdvancedTabMenu?

James
 

Attachments

  • Picture1.png
    213.8 KB · Views: 132

Alexander Stolte

Expert
Licensed User
Longtime User
B4X:
Private Sub B4XPage_Resize (Width As Int, Height As Int)
    AS_TabMenuAdvanced1.mBase.Top = Height - AS_TabMenuAdvanced1.mBase.Height - B4XPages.GetNativeParent(Me).SafeAreaInsets.Bottom
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…