Moved code to set height from the refresh method to init