|
|
@ -112,8 +112,10 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
if (attachEvent) element.attachEvent("onresize", fn); |
|
|
|
if (attachEvent) { |
|
|
|
else { |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
|
|
|
|
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(); |
|
|
|