Ox.Checkbox: change default width from 'auto' to 16 if there is neither a label nor a title
This commit is contained in:
parent
7284ae4ddf
commit
4b143de951
1 changed files with 1 additions and 3 deletions
|
@ -6,7 +6,6 @@ Ox.Checkbox <f> Checkbox Element
|
||||||
options <o> Options object
|
options <o> Options object
|
||||||
disabled <b> if true, checkbox is disabled
|
disabled <b> if true, checkbox is disabled
|
||||||
group <b> if true, checkbox is part of a group
|
group <b> if true, checkbox is part of a group
|
||||||
id <s> element id
|
|
||||||
label <s> Label (on the left side)
|
label <s> Label (on the left side)
|
||||||
labelWidth <n|64> Label width
|
labelWidth <n|64> Label width
|
||||||
title <s> Title (on the right side)
|
title <s> Title (on the right side)
|
||||||
|
@ -23,13 +22,12 @@ Ox.Checkbox = function(options, self) {
|
||||||
.defaults({
|
.defaults({
|
||||||
disabled: false,
|
disabled: false,
|
||||||
group: false,
|
group: false,
|
||||||
id: '',
|
|
||||||
label: '',
|
label: '',
|
||||||
labelWidth: 64,
|
labelWidth: 64,
|
||||||
overlap: 'none',
|
overlap: 'none',
|
||||||
title: '',
|
title: '',
|
||||||
value: false,
|
value: false,
|
||||||
width: 'auto'
|
width: options && (options.label || options.title) ? 'auto' : 16
|
||||||
})
|
})
|
||||||
.options(options || {})
|
.options(options || {})
|
||||||
.update({
|
.update({
|
||||||
|
|
Loading…
Reference in a new issue