add a minimum margin to tooltip