2 Replies Latest reply on Dec 5, 2018 3:24 PM by romainpaillas

    ResizeMe function doesn't work anymore, in Jive Widgets, since 2018.3

    romainpaillas

      Hello,

       

      I'm facing a big issue.

      I use Jive HTML Widget, and often use resizeme() function to resize the size of the current iframe to its content. But since 2018.3 it doesn't work anymore.

       

      After test, the problem don't appear on legacy cloud (2016.3.x), on 2018.2 and on onprem (9.0.5)

       

       

      You could try with this simple code

       

      <script src="https://code.jquery.com/jquery-3.3.1.js"></script>

      <div id="1stpart">before</div>

      <div id="topDiv">

      </div>

      <div id="lastpart">after</div>

      <script> 

      $('#topDiv').html('a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>i<br>j<br>k<br>l<br>m<br>n<br>o<br>p<br>q<br>s<br>t<br>u<br>v<br>x<br>y<br>z');

      resizeMe();

      </script>

       

      When you switch in edit overview page, you can see that Jive is calling resizeMe with a new way like

      <script>resizeMe=function(){window.parent.jive.widget.resizeMe("#widgetIframe53362");};</script> with the iframe is the id of the iframe. But it's ID change each time you save the widget.

       

      You could see a <script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="jive/widget/resize-me" src="/2018.3.0.edf04c8/resources/scripts/jive/widget/resize-me.js"></script> line too

       

      Anybody can help ?

       

      Thanks