Support dynamic window resizing.
Fix for window maximization.
Fix bad variable.  Remove unnecessary padding.
Simplify a bit.
Merge pull request #1 from nurikabe/master

Dynamic collapse capability.