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

liulifeng77

Active Member
Licensed 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

alwaysbusy

Expert
Licensed User
I will need more info, as I don't really understand what the picture says. Please post a real snippet demonstrating the problem.
 

liulifeng77

Active Member
Licensed 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

alwaysbusy

Expert
Licensed User
Thank you for giving your (temp) solution! I've been searching but I can't find the real reason for the moment.
 

alwaysbusy

Expert
Licensed 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]
 
Top