简体   繁体   中英

Can i prevent the keyboard to push things up when it's shown

I am using sencha touch beta 3 version at the moment. I have a header bar(a panel docked to top) with buttons and title, and have a textarea on the other panel that takes space left. When i tap in the textarea, keyboard shows up and makes the header bar to scroll out of the screen. What i want is to have this header bar left in place. I would try to scroll it back to compensate the amount that keyboard pushes up to, but i wasn't able to implement that. Any help appreciated

Edit: This issue is more relative to ios: on android keyboard pushes stuff up only if it (keyboard) overlaps the textarea, but on iphone keyboard always pushes stuff up.

Edit: if the textarea is thin, the header bar is not scrolled out on ios as well, but i need the textarea to be big enough, and the textarea scrolled if needed, not the headerbar.

Edit: i've implemented the header bar to move downward on keyboard showup and vise versa, but i'm facing issues with doing that simulatenously. Still hope to get some better way to do that, any help appreciated

You might want to look at windowSoftInputMode attribute.

Adjust it so that your screen resizes when the keyboard pops up.

解决了本地实现所需屏幕的问题(制作了一个pg插件,可以从JavaScript代码中创建屏幕)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM