8.1.10 Reporting the ScreenSize of a iPhone7: 0,0,375,667
Brian Milby
brian at milby7.com
Fri Jun 22 22:46:07 EDT 2018
Interesting. I have an 8 plus and will test on Monday.
If you use GM logic, actual pixel size reported should not pose a large problem. GM stores positions either fixed pixels from edge/object or percentage of total H or W from edge/object. If numbers are varying like that, percentage would solve the observed differences.
I will say that I have not done much at all in the sim, mainly just test on my phone. But I don’t have many devices and can’t test the other sizes yet.
On Jun 22, 2018, 9:24 PM -0500, Sannyasin Brahmanathaswami via use-livecode <use-livecode at lists.runrev.com>, wrote:
> Never mind.. I had to run (since I did a fresh install of Xcode)
>
> sudo xcode-select -s /Applications/Xcode.app
>
> But now my Simulator works! So we back the screenRect problem
>
> Wow... one step close to the gremlin (hehe)
>
> And, as Panos says it has nothing to do with 11.4 ... its deeper that than
>
> 1) set the fullScreenMode of this stack to "showAll"
> -- Simulator I get a screenrect of 0,0,414,736
> -- Build test/target to actually phone 7 plus ...
> answer screenRect returns 0,0,375,667
>
> 2) With exactFit
> -- Simulator I get a screenrect of 0,0,1242,2208
> -- but on the actual phone it get
> 0,0,1125,2001...which is a factor 3x(0,0,375,667)
>
> So the difference is (obviously):
>
> Scotland does not have an iPhone 7Plus, they were using a Simulator
> But here, using the actual device, it report a screenrect different then the actual device.
>
> Hmmm. Is it LiveCode problem, or an Apple/Xcode problem?
>
> Perhaps it should file a bug... How many other devices are not registering their actual screenRect? Can be a "disaster" for attempts at responsive design.
>
> BR
>
>
> On 6/22/18, 3:38 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:
>
> That would go good news. But
>
> LC 8.1.10
> Xcode 9.3
> Build for iPod,IPhone,iPad. 8.0 or later
>
> (can you make the error dialog box so we can copy it to the clipboard?)
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list