Re: (area used by) Keyboard in iOS 15.x

2022-03-20 Thread Mark Smith via use-livecode
Hi Sean, I finally got around to doing some further testing on this. Initial results were confusing so I used the “Mobile Orientations” LC lesson to do some testing with iPhoneSafeAreaInsets() This is a very simple stack with one button. The idea is it demonstrates how if you “allow” certain or

Re: (area used by) Keyboard in iOS 15.x

2022-02-12 Thread Mark Smith via use-livecode
Thanks Sean. Very useful feedback and you are one step ahead of me. To date I’ve only really designed for portrait mode (right side up). But you are right, when the device is rotated the dimensions of safeAreaRect will change, and I imagine the right place to address that is in the resizeStack h

Re: (area used by) Keyboard in iOS 15.x

2022-02-11 Thread Pi Digital via use-livecode
Hi Mark This is really useful to know. Thanks for all your testing and research. Just a note about what iPhoneSafeAreaInsets is for. It returns the number of pixels from the top (the second item, 47 in your case) to allow for the top notch and from the bottom (4th item, 34) to allow for the on

Re: (area used by) Keyboard in iOS 15.x

2022-02-10 Thread Mark Smith via use-livecode
Sorry, it appears I attached the wrong link. Hopefully this one works better!! https://www.dropbox.com/s/2igqdbroxy5onf7/Test%20Layout%2013.livecode.zip?dl=0 > On Feb 10, 2022, at 10:08 PM, Mark Smith wrote: > >

Re: (area used by) Keyboard in iOS 15.x

2022-02-10 Thread Mark Smith via use-livecode
Hello everyone, Once again thanks to the many of you who provided advice and suggestions. They were really very helpful in coding up this full working example. In the interests of sharing I have posted an example into a dropbox account, and will upload a copy to the forums at some point. This

Re: (area used by) Keyboard in iOS 15.x

2021-12-27 Thread Mark Smith via use-livecode
Thank you Sean and Jacque, I’ve not had a chance to work on a complete solution but thought I would make a test run to see what “the effective working screenrect” was returning and as the following indicates, it does in fact take into consideration the keyboard. I just coded up one line to ru

Re: (area used by) Keyboard in iOS 15.x

2021-12-25 Thread Sean Cole via use-livecode
Another addendum to this I just noticed is in the latest RC, LC9.6.6RC1, which has iphoneSafeAreaInsets for discerning the safe area from furniture like the notch and so on. I haven't tested this but that may also include things like the keyboard and predictive areas. I just thought it was worth a