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