Ox.Checkbox: set width on init

This commit is contained in:
rolux 2012-07-09 16:00:14 +02:00
parent c0837fb4ff
commit 4b29ffe70e

View file

@ -54,7 +54,10 @@ Ox.Checkbox = function(options, self) {
))
.attr({
disabled: self.options.disabled
});
})
.css(self.options.width != 'auto' ? {
width: self.options.width
} : {});
if (self.options.title) {
self.options.width != 'auto' && that.css({