View Full Version : Form - Cannot change default labelAlign property

16 Apr 2007, 12:31 PM
I'm trying to change the default Form.labelAlign property through a config file that is used throughout my app. The config.js file is loaded right after ext-all.js. Here's my code:

Ext.form.Form.prototype.labelAlign = 'right';
Ext.form.Form.prototype.buttonAlign = 'left';
Ext.form.Field.prototype.msgTarget = 'side';

The buttonAlign and msgTarget defaults are being changed successfully, but not the labelAlign. Any ideas?

16 Apr 2007, 1:17 PM
Ext.form.Form.prototype.labelAlign = 'right';

Ext.form.Layout.prototype.labelAlign = 'right';

17 Apr 2007, 4:21 AM
Thanks, that did the trick.