Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8123869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:17:59+00:00 2026-06-06T06:17:59+00:00

EDIT I have finally figured out the problem i have been having on my

  • 0

EDIT I have finally figured out the problem i have been having on my site, it is demonstrated in this example: http://jsfiddle.net/DerNa/10/. What you are looking at here is the #frame container being moved from 0/0 position (to 50/50 position). For some reason the picture is relative to the “Window” instead of the parent container. Does anyone know how i can make it relative to the parent container?

Old Question Follows

I can’t figure out how this works for example: http://jsfiddle.net/DerNa/4/

Basically my questions is from what i found online and what i can infer by playing around with the example is that [container_width-image_width, container_height-image_height, ? ?]. it makes sense that the first two is left and top edge of the invisible container that you want the draggable to be contained in. However, I am not sure how the last two values work, they are either right/bottom or width/height, but neither seem to make much sense in the example provided.

If anyone can shed some light on this, it would be greatly appreciated!

Jason

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:18:00+00:00Added an answer on June 6, 2026 at 6:18 am

    Per http://api.jqueryui.com/draggable/#option-containment

    Containment:

    Constrains dragging to within the bounds of the specified element or
    region. Possible string values: ‘parent’, ‘document’, ‘window’, [x1,
    y1, x2, y2].

    So the numbers are the starting and ending coordinates in X,Y format. In your fiddle, you have:

    containment:[-500,-127,0,0]
    

    which translates into -500,-127 and 0,0. So basically the containment is set to a position 500 pixels to the left and 127 pixels above the starting position with an ending containment of 0,0 or rather the place where the image sits originally.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT : As of 2012-06-11 this bug has been finally fixed! https://bugs.webkit.org/show_bug.cgi?id=35981#c1 I have
edit: I figured it out. Well almost :) I fixed this issue, but I
EDIT i have something like this in a file: imagecolor=0 arrayimagecolorcopy=0 arrayimagecolorcopy3d=0 when i
EDIT: I have realized the source of my problem. I only have count information
So I have a problem that I can not figure out. I am writing
Edit: This has since been solved. Thanks to everyone who helped. Invoking the method
I've finally figured out how to make all my millions of tabs (not that
This problem of mine has me pulling my hair out. It's related to the
EDIT : I swapped out my structural implementation, but my problem still remains the
EDIT: I have fixed all but two warnings now, so thank you all for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.