From b5d67ace33bd26fe3d97cdc6fccd3953ef85f5f6 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 28 Feb 2013 14:08:46 +0530 Subject: [PATCH] CheckboxGroup: handle width update --- source/Ox.UI/js/Form/CheckboxGroup.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/Ox.UI/js/Form/CheckboxGroup.js b/source/Ox.UI/js/Form/CheckboxGroup.js index a966c8eb..5eb8c2bb 100644 --- a/source/Ox.UI/js/Form/CheckboxGroup.js +++ b/source/Ox.UI/js/Form/CheckboxGroup.js @@ -28,6 +28,13 @@ Ox.CheckboxGroup = function(options, self) { width: 256 }) .options(options || {}) + .update({ + width: function() { + self.$checkboxes.forEach(function($checkbox) { + $checkbox.options({width: self.options.width}); + }); + } + }) .addClass('OxCheckboxGroup Ox' + Ox.toTitleCase(self.options.type)); self.options.checkboxes = self.options.checkboxes.map(function(checkbox) {