* fix set height for window
* fix calculate window height
* correct style