Fixed dropdown list height calculation