8.1.1 Reporting the ScreenSize of a iPhone7: 0,0,375,667

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

8.1.1 Reporting the ScreenSize of a iPhone7: 0,0,375,667

Niggemann, Bernd via use-livecode
[my early post in pending due to length. I put the stack script in it. Better to give the stack}

Hmm. Trying to a little responsive design (works on any device/mobile screen size)

1) Make a very stack with a widget "body" as browser that fill the whole screen but for 50 at the bottom
2) Fill the whole screen -50 at the bottom for a navigation/tool  - group "footer"

But we the need to hide the group footer when they turn in landscape.  (for view full screen video)
And show it again when when orientationChanges to Portrait.

Just winging it, first time try to do this, no doubt all my methods need a lot helps,  (missing the proper way to use resize and the browser widget does not turn)

But, first problem :

I get a screenRect 0,0,375,667 on an iPhone 7+ and there is no way I can add 7+ screen…

Thanks, Apple!  (can't report screenrect from the hardware) They depend on the splash screens, so I been told.

What to do?

And, all of the code in the stack script

Available here (39k)

Go stack url "http://wiki.hindu.org/uploads/BrowserLandscapeTest.livecode"

Brahmanathaswami

PS. If one can tell me where to "resize" message. … I have been staying away from that for years!


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: 8.1.1 Reporting the ScreenSize of a iPhone7: 0,0,375,667

Niggemann, Bernd via use-livecode
For iOS, you must have a splash screen image for every native resolution
that you need to access.  If you don't have a 7+ splash, then you won't get
a true 7+ rect.  What happens is that automatic scaling kicks in at the
device level, so your stack only gets one of the splash images sizes.  So,
the app is telling the phone what resolutions it supports via those splash
screens and then the OS is adjusting to ensure that the full screen gets
used.

You can download my mobileProfile demo stack from the forum.  It uses
profiles and GM to take care of resize when device rotates.  You can do it
without profiles/GM, but it would at least let you see how it can work.

http://forums.livecode.com/viewtopic.php?f=7&t=30018

One note is that GM/PM both work on mobile now without having to manually
include any code (common library didn't get included when the post was
written).

I have not looked at this code in a while though.

Thanks,
Brian

On Sun, Jun 17, 2018 at 10:03 PM, Sannyasin Brahmanathaswami via
use-livecode <[hidden email]> wrote:

> [my early post in pending due to length. I put the stack script in it.
> Better to give the stack}
>
> Hmm. Trying to a little responsive design (works on any device/mobile
> screen size)
>
> 1) Make a very stack with a widget "body" as browser that fill the whole
> screen but for 50 at the bottom
> 2) Fill the whole screen -50 at the bottom for a navigation/tool  - group
> "footer"
>
> But we the need to hide the group footer when they turn in landscape.
> (for view full screen video)
> And show it again when when orientationChanges to Portrait.
>
> Just winging it, first time try to do this, no doubt all my methods need a
> lot helps,  (missing the proper way to use resize and the browser widget
> does not turn)
>
> But, first problem :
>
> I get a screenRect 0,0,375,667 on an iPhone 7+ and there is no way I can
> add 7+ screen…
>
> Thanks, Apple!  (can't report screenrect from the hardware) They depend on
> the splash screens, so I been told.
>
> What to do?
>
> And, all of the code in the stack script
>
> Available here (39k)
>
> Go stack url "http://wiki.hindu.org/uploads/BrowserLandscapeTest.livecode"
>
> Brahmanathaswami
>
> PS. If one can tell me where to "resize" message. … I have been staying
> away from that for years!
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode