8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667
brahma at hindu.org
Sat Jun 23 10:01:46 EDT 2018
Geesh! (He bangs his head on the desk...ha!) that fixed it!
I don't when I turn on Zoom mode... possibly last year! And it has been carrying that setting forward through all updates. It actually does a "reset" on the phone to change to "standard mode"
I suppose it good that you found this, finally.
But does it not lead to an "enhancement" request?
On iOS, if the use has the mode set as "Zoomed Mode" then return the screenRect at the "zoom mode" size.
Otherwise we cannot build a "responsive" interface.
But, my goal is met. I will turn the stack in as a test for Android to try to get in working the say way before you send out 9.1
Somehow I scripted this, first time ever in less than 100 lines without using a single resize handler or messing with the GM? Thanks to
mobileSetFullScreenRectForOrientations "portrait,portrait upside down",sPortraitRect
mobileSetFullScreenRectForOrientations "landscape left,landscape right",sLandscapeRect
and, if in work on Android, I deprecate nearly 1400 lines for code that is "impenetrable" for the human mind (created by someone who DID get it to work on Android, only God knows how...)
I wonder it you were to use resize handler, could you do with even less code? OR would the resize handler report the actual Zoomed In rect? Have to test
Current iteration is here "
Go url stack "http://wiki.hindu.org/uploads/BrowserLandscapeTest_r3.livecode"
On 6/22/18, 11:44 PM, "use-livecode on behalf of panagiotis merakos via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
I think I have found the culprit. I don’t have a Plus device to check, but
the differences you see between the iPhone 7 Plus device and simulator is
probably because you have enabled the "Zoomed Mode" in the device.
If you have "Zoomed Mode" enabled in the iPhone 6+/7+/8+ device, it reports
the screenrect of iPhone 6/7/8 (this is how Zoomed Mode works)
1. Launch the iOS Settings app.
2. Scroll down and select Display & Brightness.
3. Select the View option under the Display Zoom section.
4. If you have "Zoomed mode", change this to "Standard mode".
5. Test again and you should now see the expected screenrect (0,0,414,736)
Does that fix the problem?
More information about the Use-livecode