PDA

View Full Version : selectfield doesn't close on Android



HarryHdf
12 Dec 2011, 2:47 PM
Hi there,

I tried to create a form with Touch to enter multiple name/value - pairs (article/amount): All works fine under Chrome, so I tested in on my phone (LG optimus P500, just updated to Android 2.3):

Following excerpt of the formpanel does not close the selection (nothing happens when clicking "cancel" or "done" on phone:


...
xtype : 'fieldset',
title : "Pfand (Article/Amount)",
items : [{
xtype : 'container', layout : { type: 'hbox', align: 'stretch' },
items : [
{ xtype : "selectfield", value:'', name : 'art[0]', displayField: 'text', valueField : 'id', store : 'departicleStore', placeHolder : "please select", flex : 1, cls : 'tdelivery-info' },
{ xtype : 'spacer', width: 10 },
{ xtype : 'numberfield', value: 0, name : "anz[0]", minValue: 0, maxValue: 20, width : 100
}]
}, {
xtype : 'container', layout : { type: 'hbox', align: 'stretch' },
items : [
{ xtype : "selectfield", value:'', name : 'art[1]', displayField: 'text', valueField : 'id', store : 'departicleStore', placeHolder : "please select", flex : 1, cls : 'tdelivery-info' },
{ xtype : 'spacer', width: 10 },
{ xtype : 'numberfield', value: 0, name : "anz[1]", minValue: 0, maxValue: 20, width : 100
}]
}
...


following change works:

...
xtype : 'fieldset',
title : "Pfand (Article/Amount)",
items : [{
xtype : 'container', layout : { type: 'hbox', align: 'stretch' },
items : [
{ xtype : "selectfield", value:'', name : 'art0', displayField: 'text', valueField : 'id', store : 'departicleStore', placeHolder : "please select", flex : 1, cls : 'tdelivery-info' },
{ xtype : 'spacer', width: 10 },
{ xtype : 'numberfield', value: 0, name : "anz0", minValue: 0, maxValue: 20, width : 100
}]
}, {
xtype : 'container', layout : { type: 'hbox', align: 'stretch' },
items : [
{ xtype : "selectfield", value:'', name : 'art1', displayField: 'text', valueField : 'id', store : 'departicleStore', placeHolder : "please select", flex : 1, cls : 'tdelivery-info' },
{ xtype : 'spacer', width: 10 },
{ xtype : 'numberfield', value: 0, name : "anz1", minValue: 0, maxValue: 20, width : 100
}]
}
...


is it a fault of mine or are input arrays not possible ?

mitchellsimoens
13 Dec 2011, 8:22 AM
Can I get a simple test case to reproduce it? Also, what Android version and device?

HarryHdf
13 Dec 2011, 9:09 AM
See my post :D LG-P500 Optimus just updated to Android 2.3.3.