PDA

View Full Version : Togglefield + Texfield + Toolbar = weird scrolling.



alanou
11 Jul 2011, 3:57 AM
Hello there,

I'm facing a weird behaviour while playing around with textfields, togglefields and toolbars :
If all 3 exist on a same view, when the user tries to fill out the text field, the page scrolls up and down continuously while the virtual keyboard is visible ! :-?
Sample code :

myView = Ext.extend(Ext.Panel, {
dockedItems : [ {
dock : 'top',
xtype : 'toolbar',
title : 'my toolbar'
} ],
items : [ {
xtype : 'togglefield',
label : 'togglefield',
value : 1
}, {
xtype : 'textfield',
label : 'textfield'
} ]
});The problem seems to appear :
- only when there's both a togglefield and a toolbar around.
- on an actual device only (not on Chrome)

Sencha Touch version : 1.1.0
Used device : HTC Desire, Android 2.3.3

Any idea ? It seems like the app is wondering "where the hell is my focus ?"

Thank you

jcoenrae
22 Nov 2011, 6:13 AM
I'm having the same problem, it is really a big problem for our HTC users! It only happens on HTC devices, so I think it has something to do with their browser.

Any idea if this will be fixed soon, or any idea how to fix this?

twingocerise
29 Feb 2012, 8:28 AM
I've answered this in another thread:
(http://www.sencha.com/forum/showthread.php?132885-Screen-is-jumping-up-and-down-while-typing-on-Android&p=744883&viewfull=1#post744883)http://www.sencha.com/forum/showthread.php?132885-Screen-is-jumping-up-and-down-while-typing-on-Android&p=744883&viewfull=1#post744883

This is basically a z-index problem on fixed positioned elements.