This discussion is archived
1 Reply Latest reply: Jul 25, 2013 2:51 AM by Jezzer RSS

Resizing region height when window is resized

Jezzer Newbie
Currently Being Moderated

Hi,

 

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.

 

Any ideas?

 

Jez

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points