1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

iOS Question B4i Ver1.8 Bug?

Discussion in 'iOS Questions' started by John Decowski, Feb 26, 2015.

  1. John Decowski

    John Decowski Member Licensed User

    I used 100%y in b4a to get screen height. if I use it in b4i I get a value of 42.0 ?? I tried 100%x and got a value of 434 so I know something is skewed. I'm using iPhone 6plus.

    Is there another way to get total screen height?

    thanks ,
  2. klaus

    klaus Expert Licensed User

    Where do you use it ?
    The current screen size is known in the Page1_Resize routine not in Application_Start.
  3. John Decowski

    John Decowski Member Licensed User

    i kind of use it everywhere. I found a weird work around of resizing an image in designer script and then using the image height in my code. and then using math to figure out percent that works.
    its definitely a bug. designer script 100%y works fine.
  4. Erel

    Erel Administrator Staff Member Licensed User

    100%x and 100%y are only guaranteed to be correct inside Page_Resize event.
  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