Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Is it possible to make viewer width and height 100%
turbo_di
<p>Hi,</p>
<p> </p>
<p>I'm using ihub 3.1 and JSAPI to integrate it into html. I want the viewer to consume full size of the page.</p>
<p> </p>
<p>Is it possible?</p>
Find more posts tagged with
Comments
suresh@anumolu
<p>Hi, you can have a resize js function and invoke this function from BIRT report client script. let me know if it helps.</p>
<p> </p>
<div>function resizeBIRT() {</div>
<div> if(actuate.isInitialized()){</div>
<div>var myViewer = actuate.getViewer("viewerpane");</div>
<div>if(typeof myViewer != 'undefined' &&</div>
<div>window != null &&</div>
<div>window.frameElement != null &&</div>
<div>typeof window.frameElement != 'undefined' ){</div>
<div>var width = window.frameElement.offsetWidth-10,</div>
<div> height = window.frameElement.offsetHeight-25;</div>
<div>myViewer.setSize(width,height);</div>
<div>}</div>
<div> }</div>
<div> </div>
<div> </div>
<div> </div>
<div>delcare a second function inside BIRT report -></div>
<div>clientScripts ->onContentUpdate</div>
<div> </div>
<div>
<div>$(window).resize(function() {</div>
<div>resizeBIRT();</div>
<div>});</div>
</div>
turbo_di
<p>Thank you, that works!</p>