Browse Source

BI-25021【5.0分布式一轮】IE9浏览器,调整组件的宽度,显示不正确。

es6
Young 6 years ago
parent
commit
9ae4cc4e87
  1. 50
      dist/bundle.js
  2. 50
      dist/core.js
  3. 50
      dist/fineui.js
  4. 50
      dist/utils.js
  5. 50
      src/core/utils/detectElementResize.js

50
dist/bundle.js vendored

@ -22730,36 +22730,20 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
* version: 0.5.3 * version: 0.5.3
**/ **/
!(function () { !(function () {
// Check `document` and `window` in case of server-side rendering var attachEvent = document.attachEvent,
var _window; stylesCreated = false;
if (typeof window !== "undefined") {
_window = window;
} else if (typeof self !== "undefined") {
_window = self;
} else {
_window = this;
}
var addEventListener = typeof document !== "undefined" && document.addEventListener;
var stylesCreated = false;
if (addEventListener) { if (!attachEvent) {
var requestFrame = (function () { var requestFrame = (function () {
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function (fn) { function (fn) { return window.setTimeout(fn, 20); };
return _window.setTimeout(fn, 20); return function (fn) { return raf(fn); };
};
return function (fn) {
return raf(fn);
};
})(); })();
var cancelFrame = (function () { var cancelFrame = (function () {
var cancel = _window.cancelAnimationFrame || _window.mozCancelAnimationFrame || _window.webkitCancelAnimationFrame || var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame ||
_window.clearTimeout; window.clearTimeout;
return function (id) { return function (id) { return cancel(id); };
return cancel(id);
};
})(); })();
var resetTriggers = function (element) { var resetTriggers = function (element) {
@ -22850,7 +22834,8 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}; };
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.attachEvent("onresize", fn);
else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
createStyles(); createStyles();
@ -22869,21 +22854,16 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}); });
} }
element.__resizeListeners__.push(fn); element.__resizeListeners__.push(fn);
} else {
element.attachEvent("onresize", fn);
} }
}; };
var removeResizeListener = function (element, fn) { var removeResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.detachEvent("onresize", fn);
else {
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
if (!element.__resizeListeners__.length) { if (!element.__resizeListeners__.length) {
element.removeEventListener("scroll", scrollListener, true); element.removeEventListener("scroll", scrollListener);
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
} }
} else {
element.detachEvent("onresize", fn);
} }
}; };
@ -22898,7 +22878,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
removeResizeListener(widget.element[0], fn); removeResizeListener(widget.element[0], fn);
} }
}; };
}()); })();
(function () { (function () {
function defaultComparator (a, b) { function defaultComparator (a, b) {

50
dist/core.js vendored

@ -22730,36 +22730,20 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
* version: 0.5.3 * version: 0.5.3
**/ **/
!(function () { !(function () {
// Check `document` and `window` in case of server-side rendering var attachEvent = document.attachEvent,
var _window; stylesCreated = false;
if (typeof window !== "undefined") {
_window = window;
} else if (typeof self !== "undefined") {
_window = self;
} else {
_window = this;
}
var addEventListener = typeof document !== "undefined" && document.addEventListener; if (!attachEvent) {
var stylesCreated = false;
if (addEventListener) {
var requestFrame = (function () { var requestFrame = (function () {
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function (fn) { function (fn) { return window.setTimeout(fn, 20); };
return _window.setTimeout(fn, 20); return function (fn) { return raf(fn); };
};
return function (fn) {
return raf(fn);
};
})(); })();
var cancelFrame = (function () { var cancelFrame = (function () {
var cancel = _window.cancelAnimationFrame || _window.mozCancelAnimationFrame || _window.webkitCancelAnimationFrame || var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame ||
_window.clearTimeout; window.clearTimeout;
return function (id) { return function (id) { return cancel(id); };
return cancel(id);
};
})(); })();
var resetTriggers = function (element) { var resetTriggers = function (element) {
@ -22850,7 +22834,8 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}; };
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.attachEvent("onresize", fn);
else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
createStyles(); createStyles();
@ -22869,21 +22854,16 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}); });
} }
element.__resizeListeners__.push(fn); element.__resizeListeners__.push(fn);
} else {
element.attachEvent("onresize", fn);
} }
}; };
var removeResizeListener = function (element, fn) { var removeResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.detachEvent("onresize", fn);
else {
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
if (!element.__resizeListeners__.length) { if (!element.__resizeListeners__.length) {
element.removeEventListener("scroll", scrollListener, true); element.removeEventListener("scroll", scrollListener);
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
} }
} else {
element.detachEvent("onresize", fn);
} }
}; };
@ -22898,7 +22878,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
removeResizeListener(widget.element[0], fn); removeResizeListener(widget.element[0], fn);
} }
}; };
}()); })();
(function () { (function () {
function defaultComparator (a, b) { function defaultComparator (a, b) {

50
dist/fineui.js vendored

@ -22979,36 +22979,20 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
* version: 0.5.3 * version: 0.5.3
**/ **/
!(function () { !(function () {
// Check `document` and `window` in case of server-side rendering var attachEvent = document.attachEvent,
var _window; stylesCreated = false;
if (typeof window !== "undefined") {
_window = window;
} else if (typeof self !== "undefined") {
_window = self;
} else {
_window = this;
}
var addEventListener = typeof document !== "undefined" && document.addEventListener;
var stylesCreated = false;
if (addEventListener) { if (!attachEvent) {
var requestFrame = (function () { var requestFrame = (function () {
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function (fn) { function (fn) { return window.setTimeout(fn, 20); };
return _window.setTimeout(fn, 20); return function (fn) { return raf(fn); };
};
return function (fn) {
return raf(fn);
};
})(); })();
var cancelFrame = (function () { var cancelFrame = (function () {
var cancel = _window.cancelAnimationFrame || _window.mozCancelAnimationFrame || _window.webkitCancelAnimationFrame || var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame ||
_window.clearTimeout; window.clearTimeout;
return function (id) { return function (id) { return cancel(id); };
return cancel(id);
};
})(); })();
var resetTriggers = function (element) { var resetTriggers = function (element) {
@ -23099,7 +23083,8 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}; };
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.attachEvent("onresize", fn);
else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
createStyles(); createStyles();
@ -23118,21 +23103,16 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}); });
} }
element.__resizeListeners__.push(fn); element.__resizeListeners__.push(fn);
} else {
element.attachEvent("onresize", fn);
} }
}; };
var removeResizeListener = function (element, fn) { var removeResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.detachEvent("onresize", fn);
else {
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
if (!element.__resizeListeners__.length) { if (!element.__resizeListeners__.length) {
element.removeEventListener("scroll", scrollListener, true); element.removeEventListener("scroll", scrollListener);
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
} }
} else {
element.detachEvent("onresize", fn);
} }
}; };
@ -23147,7 +23127,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
removeResizeListener(widget.element[0], fn); removeResizeListener(widget.element[0], fn);
} }
}; };
}()); })();
(function () { (function () {
function defaultComparator (a, b) { function defaultComparator (a, b) {

50
dist/utils.js vendored

@ -14506,36 +14506,20 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
* version: 0.5.3 * version: 0.5.3
**/ **/
!(function () { !(function () {
// Check `document` and `window` in case of server-side rendering var attachEvent = document.attachEvent,
var _window; stylesCreated = false;
if (typeof window !== "undefined") {
_window = window;
} else if (typeof self !== "undefined") {
_window = self;
} else {
_window = this;
}
var addEventListener = typeof document !== "undefined" && document.addEventListener; if (!attachEvent) {
var stylesCreated = false;
if (addEventListener) {
var requestFrame = (function () { var requestFrame = (function () {
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function (fn) { function (fn) { return window.setTimeout(fn, 20); };
return _window.setTimeout(fn, 20); return function (fn) { return raf(fn); };
};
return function (fn) {
return raf(fn);
};
})(); })();
var cancelFrame = (function () { var cancelFrame = (function () {
var cancel = _window.cancelAnimationFrame || _window.mozCancelAnimationFrame || _window.webkitCancelAnimationFrame || var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame ||
_window.clearTimeout; window.clearTimeout;
return function (id) { return function (id) { return cancel(id); };
return cancel(id);
};
})(); })();
var resetTriggers = function (element) { var resetTriggers = function (element) {
@ -14626,7 +14610,8 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}; };
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.attachEvent("onresize", fn);
else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
createStyles(); createStyles();
@ -14645,21 +14630,16 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
}); });
} }
element.__resizeListeners__.push(fn); element.__resizeListeners__.push(fn);
} else {
element.attachEvent("onresize", fn);
} }
}; };
var removeResizeListener = function (element, fn) { var removeResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.detachEvent("onresize", fn);
else {
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
if (!element.__resizeListeners__.length) { if (!element.__resizeListeners__.length) {
element.removeEventListener("scroll", scrollListener, true); element.removeEventListener("scroll", scrollListener);
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
} }
} else {
element.detachEvent("onresize", fn);
} }
}; };
@ -14674,7 +14654,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
removeResizeListener(widget.element[0], fn); removeResizeListener(widget.element[0], fn);
} }
}; };
}()); })();
(function () { (function () {
function defaultComparator (a, b) { function defaultComparator (a, b) {

50
src/core/utils/detectElementResize.js

@ -8,36 +8,20 @@
* version: 0.5.3 * version: 0.5.3
**/ **/
!(function () { !(function () {
// Check `document` and `window` in case of server-side rendering var attachEvent = document.attachEvent,
var _window; stylesCreated = false;
if (typeof window !== "undefined") {
_window = window;
} else if (typeof self !== "undefined") {
_window = self;
} else {
_window = this;
}
var addEventListener = typeof document !== "undefined" && document.addEventListener;
var stylesCreated = false;
if (addEventListener) { if (!attachEvent) {
var requestFrame = (function () { var requestFrame = (function () {
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame ||
function (fn) { function (fn) { return window.setTimeout(fn, 20); };
return _window.setTimeout(fn, 20); return function (fn) { return raf(fn); };
};
return function (fn) {
return raf(fn);
};
})(); })();
var cancelFrame = (function () { var cancelFrame = (function () {
var cancel = _window.cancelAnimationFrame || _window.mozCancelAnimationFrame || _window.webkitCancelAnimationFrame || var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame ||
_window.clearTimeout; window.clearTimeout;
return function (id) { return function (id) { return cancel(id); };
return cancel(id);
};
})(); })();
var resetTriggers = function (element) { var resetTriggers = function (element) {
@ -128,7 +112,8 @@
}; };
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.attachEvent("onresize", fn);
else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
createStyles(); createStyles();
@ -147,21 +132,16 @@
}); });
} }
element.__resizeListeners__.push(fn); element.__resizeListeners__.push(fn);
} else {
element.attachEvent("onresize", fn);
} }
}; };
var removeResizeListener = function (element, fn) { var removeResizeListener = function (element, fn) {
if (addEventListener) { if (attachEvent) element.detachEvent("onresize", fn);
else {
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
if (!element.__resizeListeners__.length) { if (!element.__resizeListeners__.length) {
element.removeEventListener("scroll", scrollListener, true); element.removeEventListener("scroll", scrollListener);
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
} }
} else {
element.detachEvent("onresize", fn);
} }
}; };
@ -176,4 +156,4 @@
removeResizeListener(widget.element[0], fn); removeResizeListener(widget.element[0], fn);
} }
}; };
}()); })();

Loading…
Cancel
Save