PDA

View Full Version : Need help with Sencha Touch



m1kad0
21 Feb 2011, 7:57 AM
Hi,

We're currently using Sencha Touch with PhoneGap framework. We've encountered the following problems. Any help appreciated :)

1 - While navigating between screens some latency (approx 1 sec) occurs if the screen has a FormPanel or Map components. But this does not happen if the screens have static content. Is this normal, if not how can this be avoided?


2 - Whenever we focus on a text field, keyboard spawns and pushes the screen upwards. After completing the entry with "Done" button on the keyboard, keyboard disappears, but the screen does not return to the original state unless we tap somewhere in the screen. How can we fix this?


3 - How can we programmatically change the "pressed" property for a segmented button? Lets say we have a segmented button like below and Button 2 is currently in pressed state. Now I want to make Button 3 "pressed" programmatically, not by hand.


var segmentedButton = [{
xtype: 'spacer'
},
{
xtype: 'segmentedbutton',
id: 'seg_button',
items: [{
text: 'Button 1',
handler: function(btn, evt) {
//do sth
},
pressed: true
},
{
text: 'Button 2',
handler: function(btn, evt) {
//do sth
}
},
{
text: 'Button 3',
handler: function(btn, evt) {
//do sth
}
}]
},
{
xtype: 'spacer'
}];

4 - Randomly Ext.Msg.show() shows empty dialog. This even happens with dialogs having static content. How can this be fixed?

5 - How can we enable zooming in Ext.Map component with 2 fingers?