B4J Question [abmaterial] maybe it is a bug of page.msgbox in sarifi.

liulifeng77

Active Member
Licensed User
Longtime User
hi,
It took a long time to find the problem.
I added code: page.msgbox(.....) in demo-aboutpage-connectpage
windows or android can be displayed normally. but in sarifi, see the picture I uploaded.

any suggestions will be appreciated!
 

Attachments

  • upload.JPG
    upload.JPG
    254.4 KB · Views: 143

liulifeng77

Active Member
Licensed User
Longtime User
sorry for my poor english.
I uploaded the bas file, It's aboutpage.bas in your demo project. I just comment several line code and add "page.msgbox(.....)".
 

Attachments

  • test.jpg
    508.5 KB · Views: 107
  • AboutPage.bas
    11.7 KB · Views: 126
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
If the OPs trick doesn't work try this instead:

Add this little script in ConnectPage() at the top:
B4X:
Dim iOSFixScript As String = $"$('html').css('min-height', '100%');$('body').css('min-height', '100%');"$
AppPage.ws.Eval(iOSFixScript, Null)
AppPage.ws.Flush

It is because the Sweetalert grey overlay layer takes up 100% of the browser height. For some obscure reason, Safari does take the height of the body instead (which meight be 0px!). Safari used to do it correcly, but not now. So it is there, but not visible.[/code]
 
Upvote 0
Top