iOS Question [B4X] B4XPages - how to get page height

Alexander Stolte

Expert
Licensed User
Longtime User
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    'load the layout to Root
    Root.LoadLayout("frm_main")
    Log(Root.Height)
End Sub
 

Attachments

  • CrossPlatformProject.zip
    3 KB · Views: 145
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
The following has nothing to do with the thread:

Ok i found the bug, i need this:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    'load the layout to Root
    Sleep(0)
    Root.LoadLayout("frm_main")
    Sleep(0)
End Sub
after that, i can load my layout into the ASViewPager without the page being too big and i can't see the bottom item.
It has something to do with the PageResize in B4I.
 
Upvote 0
Top