android - PhoneGap / Sencha Touch: WebView render issue on hide SoftKeyboard -


software

i'm using sencha touch (2.1.1) , phonegap (2.5.0) develop application android , ios.

my problem

there views input fields (ext.field.text , ext.field.email) @ bottom of container. when tap input field, android softkeyboard shows , pushes entire view top input field not hidden keyboard.

now when hide keyboard (by pressing android hide button or tapping anywhere besides input field) webview not snap until tap webview again.

hardware

currently i'm facing problem on nexus 4 (android 4.2.2). works fine on ios (iphone 4/5) , on sony xperia go (android 4.0.4).

screenshots

here screenshots of problem:

the view keyboard pushes view top keyboard closed

i've figured out change android's windowsoftinputmode adjustnothing, wouldn't see typed text until hide keyboard...

update

some comments 3 mitigations sergio.

the first solution seemed best me. affects android project , not bloat js (e.g. if ext.os.is.android ...) or ios code. unfortunately nexus 4 still adjusts on focus , not revert on blur if set windowsoftinputmode described...

second solution sounds more complex. i'd need move every (bottom aligned) component on focus , revert on blur, if os android. while possible, there might problem: user can hide keyboard device's key without removing input's focus (blur not fired). don't think suitable solution.

the third solution appropriate number inputs. writing virtual keyboard text input tough task: key alignment differs between locales (e.g. y , z transposed on german keyboards) , won't match user's expectations when offering alternative keyboard (swipe input, suggestions, ...).

don't me wrong, i'm thankful shared mitigations me! not satisfied yet.

sencha touch 2.2.0 fixes issue!

i've found suitable solution. on april 15, sencha released version 2.2.0 of touch framework. after upgrading 2.1.0 layout reverts fine!

to save other's time: please note sencha cmd 3.1.x (which required 2.2.0) not work ruby 2.0.0. build process fail weird error messages. using 1.9.3 instead works fine.

update #2: sencha touch 2.2.1...

well.. i've upgraded sencha touch 2.2.1 , issue back! if you're planning use latest sencha touch release, please mind keyboard might crash layout :/


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -