subtract window height