Take height of windows created from java script into account

Signed-off-by: Simon Busch <morphis@gravedo.de>