Use an assumed peekHeight close to the real one and reduce the jumpiness that appears in some cases. Resolves #631.