Added feature to autoresize window's height to screen height

Added feature to autoresize window's height to fit browser screen. This avoids having window with save/cancel and tool buttons out of the screen.

Before:  ![Before](https://dl.dropboxusercontent.com/u/9958704/before.jpeg "Before")

After (window is scrollable):![After](https://dl.dropboxusercontent.com/u/9958704/after.png "After")