controls the height of the modal based on folders being opened