jQuery: The Write Less, Do More JavaScript Library

draggable containment options

View: New views
3 Messages — Rating Filter:   Alert me  

draggable containment options

by Mike C-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The documentation was not very clear about the options for containing
draggable elements. I'm trying to restrict the draggable element to a
specified area using an array, but the documentation just states
[x1,y1,x2,y2]. I have no idea what this means and after hours of
testing and trying to figure out what they mean, I still have no idea.
Can anyone help me with this?

--

You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@....
To unsubscribe from this group, send email to jquery-ui+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.



Re: draggable containment options

by InsiteFX :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mike,

x1 would be the horizontal position and y1 would be the vertical position
these would be in screen width.
Same for the x2 and y2, x1 y1 would be mostly start position and x2  y2
mostly the end position

Enjoy
InsiteFX
----- Original Message -----
From: "Mike C" <snibble@...>
To: "jQuery UI" <jquery-ui@...>
Sent: Monday, November 02, 2009 4:19 PM
Subject: [jquery-ui] draggable containment options


> The documentation was not very clear about the options for containing
> draggable elements. I'm trying to restrict the draggable element to a
> specified area using an array, but the documentation just states
> [x1,y1,x2,y2]. I have no idea what this means and after hours of
> testing and trying to figure out what they mean, I still have no idea.
> Can anyone help me with this?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "jQuery UI" group.
> To post to this group, send email to jquery-ui@....
> To unsubscribe from this group, send email to
> jquery-ui+unsubscribe@....
> For more options, visit this group at
> http://groups.google.com/group/jquery-ui?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@....
To unsubscribe from this group, send email to jquery-ui+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.



Re: draggable containment options

by Mike C-9 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So x1 and y1 are the top left corner of a rectangle, and x2 y2 are the
bottom right corner?

On Nov 2, 10:20 pm, "Insite FX" <Insit...@...> wrote:

> Hi Mike,
>
> x1 would be the horizontal position and y1 would be the vertical position
> these would be in screen width.
> Same for the x2 and y2, x1 y1 would be mostly start position and x2  y2
> mostly the end position
>
> Enjoy
> InsiteFX
>
> ----- Original Message -----
> From: "Mike C" <snib...@...>
> To: "jQuery UI" <jquery-ui@...>
> Sent: Monday, November 02, 2009 4:19 PM
> Subject: [jquery-ui] draggable containment options
>
> > The documentation was not very clear about the options for containing
> > draggable elements. I'm trying to restrict the draggable element to a
> > specified area using an array, but the documentation just states
> > [x1,y1,x2,y2]. I have no idea what this means and after hours of
> > testing and trying to figure out what they mean, I still have no idea.
> > Can anyone help me with this?
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "jQuery UI" group.
> > To post to this group, send email to jquery-ui@....
> > To unsubscribe from this group, send email to
> > jquery-ui+unsubscribe@....
> > For more options, visit this group at
> >http://groups.google.com/group/jquery-ui?hl=en.
>
>

--

You received this message because you are subscribed to the Google Groups "jQuery UI" group.
To post to this group, send email to jquery-ui@....
To unsubscribe from this group, send email to jquery-ui+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.