Browse Source

针对移动端rem进行适配

es6
guy 4 years ago
parent
commit
76a9fc4f5f
  1. 16
      src/base/layer/layer.popup.js

16
src/base/layer/layer.popup.js

@ -45,11 +45,11 @@ BI.PopupView = BI.inherit(BI.Widget, {
BI.PopupView.superclass._init.apply(this, arguments); BI.PopupView.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
var fn = function (e) { var fn = function (e) {
e.stopPropagation(); e.stopPropagation();
}, stop = function (e) { }, stop = function (e) {
e.stopEvent(); e.stopEvent();
return false; return false;
}; };
this.element.css({ this.element.css({
"z-index": BI.zIndex_popup, "z-index": BI.zIndex_popup,
"min-width": o.minWidth / BI.pixRatio + BI.pixUnit, "min-width": o.minWidth / BI.pixRatio + BI.pixUnit,
@ -95,7 +95,11 @@ BI.PopupView = BI.inherit(BI.Widget, {
_createView: function () { _createView: function () {
var o = this.options; var o = this.options;
this.button_group = BI.createWidget(o.el, {type: "bi.button_group", value: o.value}); 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; return this.button_group;
}, },

Loading…
Cancel
Save