PDA

View Full Version : Align checkboxes horizontally



extjser12
31 Mar 2012, 12:33 PM
Hello together

Can somebody help me to align the checkboxes in the following code horizontally? I wasn't able to achieve this with a "hbox" or "column" layout.


xtype: 'fieldset',
title: 'Filter Tables',
defaultType: 'checkbox',
items: [{
fieldLabel: 'Checkbox 1'
}, {
fieldLabel: 'Checkbox 2'
}]

Thanks for your help in advance! ;)

Kind regards
extjser12

vietits
31 Mar 2012, 3:39 PM
The following code works well for me on Chrome, Ext 4.0.7.


Ext.onReady(function(){
Ext.create('Ext.form.FieldSet', {
renderTo: Ext.getBody(),
layout: 'hbox',
title: 'Filter Tables',
defaultType: 'checkbox',
items: [{
fieldLabel: 'Checkbox 1'
}, {
fieldLabel: 'Checkbox 2'
}]
});
});