Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- addLateLoadEvent(throwFrameLoaded);
- // find if padding is needed
- var pad = (isMSIE6 || isMSIE7 || navigator.userAgent.indexOf('MSIE 8') != -1) ? 1 : 0;
- function throwFrameLoaded() {
- try {
- if (window.parent.CustomEvent) {
- // history suggests that if we don't size it down on page load,
- // when we check the height it will show the previous page's height
- window.parent.CustomEvent.fire('content_frame.loaded', self.name, 10);
- window.parent.CustomEvent.fire('content_frame.loaded', self.name, getPageHeight());
- }
- } catch (e) {}
- }
- function throwFrameSized() {
- try {
- if (window.parent.CustomEvent) {
- // IE9/IE10: resize events will be continuously triggered when there is a difference between document.body.scrollHeight and window.frameElement.height
- // to solve this issue, we do not fire event if the height we are going to set is the same as the height obtained after the previous fired event
- var previousHeig
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement