PDA

View Full Version : Textfield does not move with scrollable panel on Android HTC EVO



paul4468
18 Aug 2011, 6:38 AM
Sencha Touch Version: 1.1.0
Android Version: 2.3.3

Problem: Textfields do not move along with scrolling of the screen. It appears that a copy of the textfield will move and the original remains. The original always stays on top and hides anything under it.

If you wrap up the textfields in a fieldset then it works fine.

I have tested on iPod Touch and Motorola Photon and everything worked fine.

Problem Code:


new Ext.Application({
launch: function() {
new Ext.Panel({
fullscreen: true,
scroll: 'vertical',
layout: 'vbox',
items:[{
xtype: 'textfield',
label: 'Name',
height: 40
}
]
});
}
});


Possible Fix:


new Ext.Application({
launch: function() {
new Ext.Panel({
fullscreen: true,
scroll: 'vertical',
layout: 'vbox',
items:[{
xtype: 'fieldset',
title: 'Fieldset',
instructions: 'Instructions',
defaults: {
labelWidth: '35%'
},
items:[{
xtype: 'textfield',
label: 'Name',
height: 40
}
]
}]
});
}
});