Updated flatten-select plugin.

Change to use the last element of options for measuring height;