From 4b29ffe70e2dfebc3812b95d5c6ff20cd238cdf9 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 9 Jul 2012 16:00:14 +0200 Subject: [PATCH] Ox.Checkbox: set width on init --- source/Ox.UI/js/Form/Checkbox.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Checkbox.js b/source/Ox.UI/js/Form/Checkbox.js index a3dafdaf..63568a62 100644 --- a/source/Ox.UI/js/Form/Checkbox.js +++ b/source/Ox.UI/js/Form/Checkbox.js @@ -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({