title: Detect when tooltip is outside of overlay wrapper
body: <p>I am trying to figure out how to detect when this tooltip is overflowing the main div so I can change its class. When the container has overflow hidden on it it is outside of the view for the user, so i need to change every last element of the row (or any that leave the wrapper) so the tooltip is on the other side.</p>
  
  <p>See screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/qaSnw.png" alt="enter image description here"></p>
  
  <p>I have tried every persons code that I can find on here but none of them work. </p>