I created Ext.Window with some Ext.form fields inside. But when I resize the window shape elements still have the initial width and height.
Is explicit form field resizing required when resizing a window? Or is there an option that allows you to automatically resize form fields?
Code example:
var f_1 = new Ext.form.TextField({fieldLabel: 'Label 1'});
var f_2 = new Ext.form.TextField({fieldLabel: 'Label 2'});
var fp = new Ext.form.FormPanel({items: [f_1, f_2]});
var w = new Ext.Window({
layout: 'form',
title: 'test',
items: fp
});
w.show()
source
share