Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
How do I make the modal dialog draggable but only within the confines of the viewable window?

So I have this dialog window

window.$(".modal-dialog).draggable();

Its draggable, but sometimes it can also go outside of the frame of the window and get lost. Any idea on how to make so that a user can only drag it within their viewable window?

I've tried already the containment: with values such as parent, window and container but that limits it to only a certain area for dragging and sometimes the user can still drag it out of the window.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!