Page 1 of 1
Keyboard issues
Posted: Tue Feb 03, 2015 7:25 am
by Opaquer
Hey all!
So, I've been working on an app for a little while now and am almost there (I think) with the exception of one small bug. I've got some fields towards the bottom of my card that I want users to be able to type in. Unfortunately, when they press in the app to type in the field, the keyboard pops up and hides the field, so my users don't know if there's any issues with what they're typing

. I've looked into some other stuff and found out that the keyboard takes up 264 pixels, but I can't for the life of me figure out how to change the location of the stack - for some reason whatever I'm trying just doesn't want to work
Thanks in advanced!
Re: Keyboard issues
Posted: Tue Feb 03, 2015 10:19 am
by jmburnod
Hi Opaquer,
Yes, if you use the keyboard you can't verify what you type if the fld is in the area's keyboard.
When I meet this problem I use a group with a vertical native scroller
Best regards
Jean-Marc
Re: Keyboard issues
Posted: Tue Feb 03, 2015 11:44 pm
by Opaquer
Hi Jean-Marc
So there's no way to make the fields automatically move up by 264 pixels when the keyboard is opened? That's annoying and inconvinient

. I'll keep working on it though! I just wish there was a way to automatically detect which fields needed moving and move the screen up
Thanks!
Re: Keyboard issues
Posted: Wed Feb 04, 2015 1:49 am
by Simon
Hi Opaquer,
There are plenty of post around here on how to do this.
"get the effective working screenRect" --figure out how high you have to move the field then move it.
If using in a field script you have to delay it a bit so that the keyboard has a chance to move all the way up.
Avoid using keyboardActivated and his brother, they both ignore a "soft" keyboard down.
Simon
Re: Keyboard issues
Posted: Wed Feb 04, 2015 9:53 am
by jmburnod
Hi Opaquer,
So there's no way to make the fields automatically move up by 264 pixels when the keyboard is opened?
Yes, you can do that but I thought that you need a fld with a formattedHeight > the height of fld
Best regards
Jean-Marc
Re: Keyboard issues
Posted: Wed Feb 04, 2015 10:22 pm
by jacque
Didn't I read somewhere that if acceleratedRendering is set to true, the fields will move automatically when the keyboard appears? I haven't had time to test that yet.
Re: Keyboard issues
Posted: Wed Feb 04, 2015 10:28 pm
by Simon
Wow Jacque is quoting ME!???

I'm so cool now.
Yes, this happens on Android only, with accleratedRendering set to true the fields will move up by themselves.
Simon
Re: Keyboard issues
Posted: Wed Feb 04, 2015 10:46 pm
by jacque
I didn't know who I was quoting, but you're cool anyway SImon.
Seems like this feature should be on all mobile devices. I didn't know it was Android only, that's too bad.