I have a tree region, surrounded by <div>, the height of which is set on page load by a dynamic action so that it is 200px smaller than the window.innerHeight. I have set overflow:auto in the style so that the full free can still be viewed.
I now want a dynamic action which fires when the window is resized, which automatically adjusts the size of the region accordingly, so that the region always remains 200px smaller than the innerHeight of the window.
I can get the dynamic action to fire by setting the event to resize, however it does not change the size of the region.
Panic over, sorted it out.
Dynamic action on resize reads:
where tree is the id of my DIV.