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

Discussion in 'B4J Questions' started by liulifeng77, Jun 17, 2019.

  1. liulifeng77

    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!
     

    Attached Files:

  2. Harris

    Harris Well-Known Member Licensed User

    Dang Apple...
     
  3. alwaysbusy

    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.
     
  4. liulifeng77

    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(.....)".
     

    Attached Files:

  5. liulifeng77

    liulifeng77 Active Member Licensed User

    I find a solution:set the cell's height>=browser's height.
    maybe it is not the perfect one.but it works.
     
    alwaysbusy likes this.
  6. alwaysbusy

    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.
     
  7. alwaysbusy

    alwaysbusy Expert Licensed User

    If the OPs trick doesn't work try this instead:

    Add this little script in ConnectPage() at the top:
    Code:
    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]
     
  8. liulifeng77

    liulifeng77 Active Member Licensed User

    I'll try it.thanks.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice