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

Re: Keyboard in iOS 15.x

2021-12-24 Thread J. Landman Gay via use-livecode
On 12/24/21 2:16 PM, Sean Cole via use-livecode wrote: Just adding to what Jacquie wrote, there is also the effective working screenrect. You're right, "effective" was added to account for the keyboard on mobile. I'd start with that. -- Jacqueline Landman Gay | jac...@hyperactives

Re: Keyboard in iOS 15.x

2021-12-24 Thread Sean Cole via use-livecode
Hi Mark, Just adding to what Jacquie wrote, there is also the effective working screenrect. Use both to work out which is best for your requirements. All the best in working it out. Sean On Fri, 24 Dec 2021 at 18:01, Mark Smith via use-livecode < use-livecode@lists.runrev.com> wrote: > I am so

Re: Keyboard in iOS 15.x

2021-12-24 Thread Mark Smith via use-livecode
I am so hoping you are right Jacky. Will have a chance to test on boxing day and will let you know. Best, and Merry Christmas. Mark > On Dec 24, 2021, at 5:02 PM, J. Landman Gay via use-livecode > wrote: > > "The working screenrect" should give you the area you have available when the >

Re: Keyboard in iOS 15.x

2021-12-24 Thread J. Landman Gay via use-livecode
"The working screenrect" should give you the area you have available when the keyboard is up. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 24, 2021 8:05:08 AM Mark Smith via use-livecode wrote: Hi Panos, I discovered th

Re: Keyboard in iOS 15.x

2021-12-24 Thread Mark Smith via use-livecode
Hi Panos, I discovered the “extra” line at the top of the keyboard was called “predictive” in the keyboard settings. Turning predictive off removes the extra line, so that solved the immediate problem, but not the longer term one (which can only really be fixed by either “pinning" the header b

Re: Keyboard in iOS 15.x

2021-12-23 Thread Mark Smith via use-livecode
Thanks Panos, I appreciate the quick response. That works reasonably well except the card has a header bar and using the “pan” option moves the header bar off screen as well, which unfortunately hides some important header bar controls. If we could “stick” the header bar while panning the dg (so

Re: Keyboard in iOS 15.x

2021-12-23 Thread panagiotis m via use-livecode
Hello Mark, What about using: mobileSetKeyboardDisplay "pan" See the dictionary for more details. Cheers, Panos On Thu, 23 Dec 2021 at 17:08, Mark Smith via use-livecode < use-livecode@lists.runrev.com> wrote: > It seems the keyboard in iOS 15 has gained some height and that is causing > a

Keyboard in iOS 15.x

2021-12-23 Thread Mark Smith via use-livecode
It seems the keyboard in iOS 15 has gained some height and that is causing a problem. Scenario. My UI is primarily a datagrid. Fill it with 8 items and the next one added will cause the keyboard to cover the row. The previous solution has been to redraw the datagid so it occupies the space abov