From f4ba024b814967232afb19327f5829b7e904376f Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 23 Nov 2017 16:48:40 +0800 Subject: [PATCH] Roo/bootstrap/TriggerField.js --- Roo/bootstrap/TriggerField.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/TriggerField.js b/Roo/bootstrap/TriggerField.js index 315a37cd67..31b061a2a3 100644 --- a/Roo/bootstrap/TriggerField.js +++ b/Roo/bootstrap/TriggerField.js @@ -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 = [ { -- 2.39.2