Hi,
I can detect when the keyboard is activated/deactivated. But I don't know his height... So how can I change the size of the stack? move my input fields and button to a upper position?
Thx
change the size of a card when keyboard appears
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: change the size of a card when keyboard appears
Hi,
You can use the working screenRect to get the area that is not covered by the keyboard. The difference between the screenRect and the working screenRect gives you the height of the keyboard.
I've noticed that the keyboard can be a bit slow. You need to make sure that you check working screenRect some time after the keyboard appears or disappears. Half a second should be enough.
Kind regards,
Mark
You can use the working screenRect to get the area that is not covered by the keyboard. The difference between the screenRect and the working screenRect gives you the height of the keyboard.
I've noticed that the keyboard can be a bit slow. You need to make sure that you check working screenRect some time after the keyboard appears or disappears. Half a second should be enough.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: change the size of a card when keyboard appears
Hi,
Thanks Mark. This helps.
Kind regards,
jihem
Thanks Mark. This helps.
Kind regards,
jihem