Be sure we know window height before any work