detect keyboard height on mobile

Hakan at Exformedia.se Hakan at Exformedia.se
Fri Sep 21 05:25:45 EDT 2012


What I do is to place every form control in a group and then when a control gets the focus you scroll the group so the field is visible, then when the keyboard is dismissed you scroll the group back to its original position. You can also add user scrolling to the group so the user can scroll up and down.

:-Håkan

21 sep 2012 kl. 04:49 skrev Andre Garzia:

>> It would be much simpler to have a cross platform modal for text editing.
>> Perhaps single and multiline options.
>> 
> 
> Except sometimes you wish your editing was not modal... A client complained
> about the modal editing, he wanted me to provide in-place editing for the
> apps forms but since they were complex forms that went below the the middle
> of the card, I could not provide in-place editing because the keyboard
> would launch on top of the fields.
> 
> My solution was to hard code some modal inputs which is not bad but still I
> need to figure out where to place the controls on the modal input card. For
> example is my "ok" button too far down that it will overlap with the
> keyboard? This is a hard question to answer. Not all inputs are single
> line. Sometimes you have a text area input, how tall can this text area be
> before it overlaps with the keyboard?
> 
> I want the working screenrect to tell me that information. =)
> 
> 
> 
>> 
>> --
>> M E R Goulding
>> Software development services
>> Bespoke application development for vertical markets
>> 
>> mergExt - There's an external for that!
>> 
>> _______________________________________________
>> 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
>> 
> 
> 
> 
> -- 
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
> _______________________________________________
> 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