PDA

View Full Version : BUG textfield & soft keyboard



perry_jia
8 Apr 2011, 7:10 AM
Platform: Android2.1, Sencha Touch1.1
Description:
I wrote an Ext.Panel in my android mobile which layout is "card" , and there is a "textarea" in the first card, then i wrote some words in it,
then panel.setActiveItem(secondCard, 'slide'), the secondCard is an object of Ext.List, and then i tap the secondCard, the soft keyboard pop up(It should not pop up.).




Ext.ns('view');
view.MyCard = Ext.extend(Ext.Panel, {
layout : 'card',
fullscreen : true,
scroll : 'vertical',
initComponent : function() {
this.items = [{
xtype : 'form',
items : [{
xtype : 'fieldset',
title : 'Personal Info',
items : [{
xtype : 'textareafield',
name : 'bio',
placeHolder : 'Write some words here',
maxLength : 60,
maxRows : 10
}, {
xtype: 'button',
text: 'Submit',
handler : this.onSubmit,
scope: this
}]
}]
}];
view.MyCard.superclass.initComponent.call(this);
},

onSubmit: function() {
/**SecondCard is an Object of Ext.List,
* when you tap(click) the list (no input ,just a list),
* the soft keyboard pops up.
**/
var secondCard = new view.SecondCard();
this.setActiveItem(secondCard, 'slide');
}
});

Ext.setup({
onReady: function() {
new view.MyCard();
}
});


I tried many method, for example


onSubmit: function() {
var secondCard = new view.SecondCard();
this.setActiveItem(secondCard, 'slide');
this.destroy();
}

but when tap the secondCard, the soft keyboard still pop up.

It's the Android's bug or sencha touch's bug?

I'm from China, is that i didn't describe the question clearly?
I have been tried to solve the problem for half a month, still couldn't find the way.
Help!

perry_jia
8 Apr 2011, 5:37 PM
nobody met this problem? waiting...

perry_jia
8 Apr 2011, 10:50 PM
:-/

perry_jia
9 Apr 2011, 6:47 AM
Where are the Secha Touch developers?
:-/

perry_jia
11 Apr 2011, 5:43 PM
The forum is not active, so sad,no reply.

perry_jia
14 Apr 2011, 7:17 PM
oh my god. show me the answer, angry :(

VinylFox
15 Apr 2011, 7:06 AM
Please read: http://www.sencha.com/forum/showthread.php?104623-Posting-to-the-bug-forum