windy 5 years ago
parent
commit
fb657ce7f5
  1. 7
      src/base/single/button/buttons/button.js

7
src/base/single/button/buttons/button.js

@ -59,8 +59,7 @@ BI.Button = BI.inherit(BI.BasicButton, {
height: o.height - 2 height: o.height - 2
}); });
BI.createWidget({ BI.createWidget({
type: "bi.center_adapt", type: "bi.default",
cls: o.iconCls,
element: this, element: this,
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -68,10 +67,14 @@ BI.Button = BI.inherit(BI.BasicButton, {
bgap: o.bgap, bgap: o.bgap,
lgap: o.lgap, lgap: o.lgap,
rgap: o.rgap, rgap: o.rgap,
items: [{
type: "bi.center_adapt",
cls: o.iconCls,
items: [{ items: [{
type: "bi.horizontal", type: "bi.horizontal",
items: [this.icon, this.text] items: [this.icon, this.text]
}] }]
}]
}); });
} else { } else {
this.text = BI.createWidget({ this.text = BI.createWidget({

Loading…
Cancel
Save