These try to open above, but there's no room, so they'll open below.
These prefer opening above, but will open below if there's more room.
This wants to open below, but will open above if there's more room.
These try to open below, but there's no room so will open above.