'use strict';

App.factory('iframeHelpers', function() {
  var iframeHelpers = {
    resizeIframe: function() {
      setTimeout(function() {
        if (window.postMessage) {
          var minPageHeight = 250; // px
          var height = document.documentElement.offsetHeight;
          height = Math.max(height, minPageHeight);
          window.parent.postMessage('MASRESIZE-' + height, '*');
        }
      });
    }
  };

  return iframeHelpers;
});


@@ -224,21 +224,25 @@
     var 
-heigh
+docElemen
 t = docu
@@ -265,21 +265,8 @@
 ment
-.offsetHeight
 ;%0A  
@@ -273,16 +273,20 @@
         
+var 
 height =
@@ -299,31 +299,82 @@
 max(
-height, minPage
+docElement.scrollHeight, docElement.offsetHeight, docElement.client
 Height)
-;
 %0A   

fix IE height resize of syndication iframe