title: How can I prevent off the screen the dragging of a p-dialog from PrimeNG
body: <p>I'm using p-dialog from PrimNG. With <code>[draggable]</code> enabled, I can prevent the modal from being dragged off-screen on the left and top using <code>[minX]</code> and <code>[minY]</code>.</p>
  
  <p>Is there a way to prevent the modal from being dragged off-screen on the right and bottom?</p>
  
  <p>I am using <a href="https://www.primefaces.org/primeng/#/dialog" rel="nofollow noreferrer">https://www.primefaces.org/primeng/#/dialog</a> in a pretty standard implementation.</p>