PDA

View Full Version : TexArea scrolling? and wich lenght?



Riddler
22 Feb 2011, 7:16 AM
Hi to all,
I try to make a revision/comment form ...

this is my code:




var panelRecensione = new Ext.Panel({
items: [
{
xtype: 'textfield',
id:'nameReviewer',
name: 'name',
label: 'Nome'
},
{
xtype: 'textarea',
id: 'textReview',
name: 'review',
label: 'Recensione',
autoCapitalize: true,
},
{
xtype: 'button',
text: 'Pubblica',
handler: function(){
alert(Ext.get('textReview').length);
//makeReview();
}
},
],
dockedItems:
[{
dock : 'top',
xtype: 'toolbar',
ui: 'plain',
title: '<div class="titleReview">commento - recensione</div>',
height: 39,
style:
{
border: 'none',
}
}],
cls: 'panelReview'
});


But the texarea in a iPhone simulator don't scroll when i write something in a textarea ... and the alert not show anything ...

where is the problem?

I can get the text contained in texarea ...
Ext.getCmp('textReview').getValue();

How I can set an height or number of visible rows?

thanks