Dynamically Resize widget

Hi,

Within the Wix editor, i’ve added an element, embed → embed a widget. My script pulls in information, on each page it will load different information so the size of the widget will be different depending on the page. I’d like to remove the default scrollbar, however when i do remove the scrollbar it cuts the widget block, on some pages the information will be cut. Is there a way to dynamically adjust the size of the widget without having a scrollbar, please see pictures attached.

Thanks,
Joseph

With the Scrollbar everything displays:

Without the Scrollbar it cuts it off:


I’d like to remove the Scrollbar and dynamically adjust the Widget so that all the information displays on the page, how can i do this? The below code will remove the scroll but how do I dynamically adjust the widget so that all the information in the script is displayed and not cut off like in the picture above.

$w . onReady ( function () {

$w ( '#html3' ). scrolling  =  "no" ; 

});

I don’t think you can do it with an html component, how ever if you create a custom element (you can have an iframe there or not, whatever you wish), then you’ll have more control (search the web how to fit an iframe to contents).

thanks JD