which is either the height of the option list part plus borders or the total list height, whichever is less.