I'm hoping that someone could help me out here.
I'm trying to use anchor inside a form fieldset. I had it working on a form, but when I but items inside a fieldset it's gone a bit odd.
Basicly what happens is the textfield resizes to match the resized window, but when the window is shrunk it stays at it's larger size. What am I missing here?
Code:
var testForm = new Ext.form.FormPanel({
title: 'Test Form',
labelWidth: 50,
bodyStyle: 'padding:5px',
border: false,
frame: true,
items: [{
xtype: 'fieldset',
title: 'test',
autoHeight: true,
items: [{
xtype: 'textfield',
fieldLabel: 'To',
name: 'f_to',
value: 'foo@bar.com',
anchor: '-15'
}]
}]
});
var win = new Ext.Window({
width: 560,
height: 400,
minWidth: 300,
minHeight: 200,
plain: true,
title: 'Test Window',
layout: 'fit',
border: false,
closable: false,
items: testForm
});
win.show();