fit table height to window if possible