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