From b2b6ba3b22b2efc9ded114a66fbb532945e176ae Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 15 Dec 2021 17:50:33 +0800 Subject: [PATCH] bugfix --- src/base/single/button/buttons/button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/single/button/buttons/button.js b/src/base/single/button/buttons/button.js index b5dc71c27..cb3024664 100644 --- a/src/base/single/button/buttons/button.js +++ b/src/base/single/button/buttons/button.js @@ -61,7 +61,7 @@ BI.Button = BI.inherit(BI.BasicButton, { type: "bi.icon_label", cls: o.iconCls, width: this._const.iconWidth, - height: o.height, + height: lineHeight, lineHeight: lineHeight, iconWidth: o.iconWidth, iconHeight: o.iconHeight @@ -71,7 +71,7 @@ BI.Button = BI.inherit(BI.BasicButton, { text: o.text, textWidth: BI.isNotNull(o.textWidth) ? o.textWidth - this._const.iconWidth : null, textHeight: textHeight, - height: o.height, + height: lineHeight, value: o.value }); BI.createWidget({ @@ -88,7 +88,7 @@ BI.Button = BI.inherit(BI.BasicButton, { } else { this.text = BI.createWidget({ type: "bi.label", - height: o.height, + height: lineHeight, textAlign: o.textAlign, whiteSpace: o.whiteSpace, textWidth: o.textWidth,