Sets dropdown height dynamically