guy 3 years ago
parent
commit
ef2d86391a
  1. 16
      src/case/trigger/trigger.text.js

16
src/case/trigger/trigger.text.js

@ -6,9 +6,6 @@
* @extends BI.Trigger * @extends BI.Trigger
*/ */
BI.TextTrigger = BI.inherit(BI.Trigger, { BI.TextTrigger = BI.inherit(BI.Trigger, {
_const: {
hgap: 6
},
_defaultConfig: function () { _defaultConfig: function () {
var self = this; var self = this;
@ -16,6 +13,12 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-text-trigger", baseCls: (conf.baseCls || "") + " bi-text-trigger",
height: 24, height: 24,
textHgap: 6,
textVgap: 0,
textLgap: 0,
textRgap: 0,
textTgap: 0,
textBgap: 0,
textCls: "", textCls: "",
title: function () { title: function () {
return self.text.getText(); return self.text.getText();
@ -34,7 +37,12 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
text: o.text, text: o.text,
tipType: o.tipType, tipType: o.tipType,
warningTitle: o.warningTitle, warningTitle: o.warningTitle,
hgap: c.hgap, hgap: o.textHgap,
vgap: o.textVgap,
lgap: o.textLgap,
rgap: o.textRgap,
tgap: o.textTgap,
bgap: o.textBgap,
readonly: o.readonly readonly: o.readonly
}); });
this.trigerButton = BI.createWidget({ this.trigerButton = BI.createWidget({

Loading…
Cancel
Save