PDA

View Full Version : Layout problem



--miCZar--
20 Jan 2011, 2:00 PM
It's gonna be a newbie question, but I can't find normal solution for this. I have page like this:
Ext.onReady(function () {
new Ext.Viewport({
layout: 'border',
items: [{
region: 'center',
frame: true,
items: [{
xtype: 'form',
layout: 'form',
defaults: {
anchor: '-10'
},
items: [{
xtype: 'textfield',
fieldLabel: 'Title'
},
{
xtype: 'textarea',
fieldLabel: 'Text'
}]
}]
}]
});
});All I want is the textarea to fill whole available space on the page. Is there a simple way in Ext to do this? And second question: how to handle textarea resize on browser's window resize?

25 Jan 2011, 12:00 PM
try:

anchor : '-10 -30'