added the ability to change the placement from top to bottom if top space is insufficient and similiar to other cases

added the ability to change the placement from top to bottom if top space is insufficient and similiar to other cases
it applies for both popovers and tooltips