From f668c8e09b6291432808239d3cc8e3fba3affabd Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 25 Jun 2019 18:06:11 +0800 Subject: [PATCH] update --- src/base/single/button/buttons/button.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index 38afe6ed7..a76540c21 100644 --- a/src/base/single/button/buttons/button.js +++ b/src/base/single/button/buttons/button.js @@ -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, @@ -68,12 +69,8 @@ BI.Button = BI.inherit(BI.BasicButton, { lgap: o.lgap, rgap: o.rgap, items: [{ - type: "bi.center_adapt", - cls: o.iconCls, - items: [{ - type: "bi.horizontal", - items: [this.icon, this.text] - }] + type: "bi.horizontal", + items: [this.icon, this.text] }] }); } else {