diff --git a/source/Ox.UI/js/Form/Checkbox.js b/source/Ox.UI/js/Form/Checkbox.js index a4dd17ba..5277095f 100644 --- a/source/Ox.UI/js/Form/Checkbox.js +++ b/source/Ox.UI/js/Form/Checkbox.js @@ -6,7 +6,6 @@ Ox.Checkbox Checkbox Element options Options object disabled if true, checkbox is disabled group if true, checkbox is part of a group - id element id label Label (on the left side) labelWidth Label width title Title (on the right side) @@ -23,13 +22,12 @@ Ox.Checkbox = function(options, self) { .defaults({ disabled: false, group: false, - id: '', label: '', labelWidth: 64, overlap: 'none', title: '', value: false, - width: 'auto' + width: options && (options.label || options.title) ? 'auto' : 16 }) .options(options || {}) .update({