Fix bug when the window is resized

It was calling the resizer method on the window, not on the elements that
needed to be resized
Better method to set element height

1) We need to use the window's height, not the document height
The document height includes the part in the browser window's
scrolled portion off the top and bottom.  window is only the
visible part

2) We need to account for the element's top and bottom padding
since setting the height does not include padding
Another fix for vertical scrolling

This one makes the stack tabs scrollable separate from the program code