From 76a9fc4f5fef7f256b29c07d540fd07b693bd89d Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 8 Feb 2021 23:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E7=A7=BB=E5=8A=A8=E7=AB=AFre?= =?UTF-8?q?m=E8=BF=9B=E8=A1=8C=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/layer/layer.popup.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/base/layer/layer.popup.js b/src/base/layer/layer.popup.js index 98ab2cf1d6..9c6eb05364 100644 --- a/src/base/layer/layer.popup.js +++ b/src/base/layer/layer.popup.js @@ -45,11 +45,11 @@ BI.PopupView = BI.inherit(BI.Widget, { BI.PopupView.superclass._init.apply(this, arguments); var self = this, o = this.options; var fn = function (e) { - e.stopPropagation(); - }, stop = function (e) { - e.stopEvent(); - return false; - }; + e.stopPropagation(); + }, stop = function (e) { + e.stopEvent(); + return false; + }; this.element.css({ "z-index": BI.zIndex_popup, "min-width": o.minWidth / BI.pixRatio + BI.pixUnit, @@ -95,7 +95,11 @@ BI.PopupView = BI.inherit(BI.Widget, { _createView: function () { var o = this.options; this.button_group = BI.createWidget(o.el, {type: "bi.button_group", value: o.value}); - this.button_group.element.css({"min-height": o.minHeight / BI.pixRatio + BI.pixUnit, "padding-top": o.innerVGap / BI.pixRatio + BI.pixUnit, "padding-bottom": o.innerVGap + "px"}); + this.button_group.element.css({ + "min-height": o.minHeight / BI.pixRatio + BI.pixUnit, + "padding-top": o.innerVGap / BI.pixRatio + BI.pixUnit, + "padding-bottom": o.innerVGap / BI.pixRatio + BI.pixUnit + }); return this.button_group; },