Roo/bootstrap/Radio.js
authorAlan Knowles <alan@roojs.com>
Thu, 30 Jul 2015 07:50:04 +0000 (15:50 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 30 Jul 2015 07:50:04 +0000 (15:50 +0800)
Roo/bootstrap/Radio.js

index 1e25319..ec37b33 100644 (file)
@@ -69,12 +69,13 @@ Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.CheckBox,  {
                 cls : 'control-label box-label' + inline,
                 cn : []
         };
+        this.labelWidth = this.labelWidth ? this.labelWidth *1 : 100;
         
         var fieldLabel = {
             tag: 'span' ,
             //cls : 'control-label' + inline,
             html : this.fieldLabel,
-            style : 'width:' +  this.fieldWidth  + 'px'
+            style : 'width:' +  this.labelWidth  + 'px'
         };