Expand my Community achievements bar.

Problem to change the master page height using javascript

Avatar

Former Community Member
Hi everyone,



I've been trying it but no luck... appreciate any helps possible.. Thanks!



I've a masterpage called 'UILayout':

Long(Height)=100mm, Short(Width)=100mm



I've a button click event with the script to set the Long to 160mm:

====================================

//display current height

var curHeight = xfa.form.form1.pageSet.UILayout.medium["long"];

xfa.host.messageBox("Current Height = " + curHeight);

//set height to 160mm

xfa.form.form1.pageSet.UILayout.medium["long"]="160mm";

//relayout the pageArea

xfa.layout.relayoutPageArea(0);

====================================

Doesn't work, I wrote another button click event to retrieve the height, and it returned 160mm. But the layout just doesn't refresh with the changed height....i'm using LC Designer 8.2, form saved as Dynamic XML PDF , compability set to 7.0.5, view in Acrobat Pro 7.1. Thanks...
1 Reply

Avatar

Former Community Member
I do not think you will be able to adjust the Master page size as it is tied to the Content Area size as well. I tried to adjust the pageisze and the content size but it was ignored. I can get at the properties to change them but that is it.