Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

zoom to fit width

Avatar

Level 2
I am dealing with a document that has 3 different masterpages all of different sizes. Yes this is necessary as it turns out. My problem is that when navigating from one page to another, the page that is navigated to does not fill the screen the way I need it to. I'm looking for a JavaScript that will work in LiveCycle in the same fashion that -



this.zoomType = zoomtype.fitW;



- works in Acrobat. Is there a script that will allow my pages to "fit to width" in LiveCycle when navigating from one to another?



Thank you.
1 Reply

Avatar

Former Community Member
On the enter event of each page use this command:



event.target.zoomType = zoomtype.fitW;