Browse Source

DEC-18736 fix: 超长toast在IE下显示问题

es6
zsmj1994 4 years ago
parent
commit
35f184b675
  1. 13
      src/base/single/tip/tip.toast.js

13
src/base/single/tip/tip.toast.js

@ -30,7 +30,15 @@ BI.Toast = BI.inherit(BI.Tip, {
e.stopEvent(); e.stopEvent();
return false; return false;
}; };
this.element.bind({click: fn, mousedown: fn, mouseup: fn, mouseover: fn, mouseenter: fn, mouseleave: fn, mousemove: fn}); this.element.bind({
click: fn,
mousedown: fn,
mouseup: fn,
mouseover: fn,
mouseenter: fn,
mouseleave: fn,
mousemove: fn
});
var cls = "close-font"; var cls = "close-font";
switch (o.level) { switch (o.level) {
case "success": case "success":
@ -78,7 +86,8 @@ BI.Toast = BI.inherit(BI.Tip, {
} }
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.horizontal_adapt", type: "bi.horizontal",
horizontalAlign: BI.HorizontalAlign.Stretch,
element: this, element: this,
items: items, items: items,
vgap: 7, vgap: 7,

Loading…
Cancel
Save