Last active
December 19, 2015 19:28
-
-
Save fomojola/6005796 to your computer and use it in GitHub Desktop.
Titanium Appcelerator Hipmob iOS Keyboard Handling - Full example at https://github.com/Hipmob/hipmob-titanium-test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(iphone){ | |
chatView.addEventListener(hipmob.EVENT_KEYBOARD_SHOW, function(data){ | |
chatView.animate({height: win.rect.height - data.height, duration: data.duration * 1000 }); | |
}); | |
chatView.addEventListener(hipmob.EVENT_KEYBOARD_HIDE, function(data){ | |
chatView.animate({ height: win.rect.height, duration: data.duration * 1000 }); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment