Roo/bootstrap/TriggerField.js
authoredward <edward@roojs.com>
Thu, 23 Nov 2017 08:48:40 +0000 (16:48 +0800)
committeredward <edward@roojs.com>
Thu, 23 Nov 2017 08:48:40 +0000 (16:48 +0800)
Roo/bootstrap/TriggerField.js

index 315a37c..31b061a 100644 (file)
@@ -268,7 +268,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
             combobox.cls += ' roo-select2-container-multi';
         }
         
-        if (align ==='left' && this.fieldLabel.length && this.labelWidth) {
+        if (align ==='left' && this.fieldLabel.length) {
             
             cfg.cn = [
                 {
@@ -279,12 +279,12 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
                 {
                     tag: 'label',
                     'for' :  id,
-                    cls : 'control-label col-sm-' + this.labelWidth,
+                    cls : 'control-label',
                     html : this.fieldLabel
 
                 },
                 {
-                    cls : "col-sm-" + (12 - this.labelWidth)
+                    cls : ""
                     cn: [
                         combobox
                     ]
@@ -292,6 +292,9 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
 
             ];
             
+            var labelCfg = cfg.cn[1];
+            var contentCfg = cfg.cn[2];
+            
             if(this.indicatorpos == 'right'){
                 cfg.cn = [
                     {