About the "full-height" problem on service portal's page container.

dalin1
Kilo Contributor

Hello all,

This problem is a old one, please refer to this thread... ServiceNow Portal - Full Page Container

However I just found there's a CAB portal coming up since Istanbul release, of which the "CAB Workbench - Meeting Calendar" widget can be displayed in full-height within a service portal's page container, and the calendar is not cut off.     Does anyone know how this can be achieved - for instance, I have a iframe widget to pull out the reports module like,   <div><iframe src="report_home.do?jvar_selected_tab=myReports" width="100%" height="100%" frameBorder="0" scrolling="no"></iframe></div>

. Thanks very much in advance!

Screen Shot 2017-04-29 at 9.08.24 PM.png

1 ACCEPTED SOLUTION

Jon Barnes
Kilo Sage

The difference is that this page you have screen shot is not an iframe, so the window will naturally grow to cover the height. Doing the same for iframes is possible, but it requires a javascript function running on a timer that checks the iframe's content height on an interval and adjusting the iframe window height to match.



But as Brad said in the other post, Service Portal was meant to get us away from iframes, so if you can find another way to show the content you want, it would be better, as popping iframes on the page gets you right back to the old model.


View solution in original post

3 REPLIES 3

Jon Barnes
Kilo Sage

The difference is that this page you have screen shot is not an iframe, so the window will naturally grow to cover the height. Doing the same for iframes is possible, but it requires a javascript function running on a timer that checks the iframe's content height on an interval and adjusting the iframe window height to match.



But as Brad said in the other post, Service Portal was meant to get us away from iframes, so if you can find another way to show the content you want, it would be better, as popping iframes on the page gets you right back to the old model.


Thanks very much for the guidance.


thoma5
Giga Contributor

Appreciate the guidanc eand ideology of portal and iFrame... BUT IF YOU WERE to do it... what would an example of that be like?

 

thanks