|
|
@ -16841,10 +16841,10 @@ BI.ScalingCellSizeAndPositionManager.prototype = { |
|
|
|
_window = this |
|
|
|
_window = this |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var attachEvent = typeof document !== 'undefined' && document.attachEvent; |
|
|
|
var addEventListener = typeof document !== 'undefined' && document.addEventListener; |
|
|
|
var stylesCreated = false; |
|
|
|
var stylesCreated = false; |
|
|
|
|
|
|
|
|
|
|
|
if (!attachEvent) { |
|
|
|
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) { |
|
|
@ -16951,8 +16951,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
if (attachEvent) element.attachEvent('onresize', fn); |
|
|
|
if (addEventListener){ |
|
|
|
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(); |
|
|
@ -16972,17 +16971,21 @@ 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 (attachEvent) element.detachEvent('onresize', fn); |
|
|
|
if (addEventListener) { |
|
|
|
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, true); |
|
|
|
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); |
|
|
|
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
element.detachEvent('onresize', fn); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|