Re: [jQuery] Interface Draggable in a container
I was under the impression that contaiment kept the element constrained inside the parent element, so its X and Y coordinates could not be smaller than the X and Y coordinates of the parent.That's not what I need. I need something like Google Maps, where the element can be outside the parent box, but will still be wrapped inside it. -- YehudaOn 9/11/06, Stefan Petre [EMAIL PROTECTED] wrote: If you want to keep the draggable inside its parent you can usecontainment 'parent'. This way the dragged element will never leave itsparent.Paul Bakaus wrote: Hi there, this is because of Interface appending the draggable element to the body, rather then to its parent. For example, scriptaculous appends the draggable to it's parent, so it will stay in context. I had the problem the other way around: When using scriptaculous, I had to modify scriptaculous to append to body, because of this: My draggable was in a overflow: auto container and I wanted to move it out. However, trying to move a overflow: auto's child will give you only scrollbars. Perhaps we should implement a option to toggle between appending to body/parent, like appendTo: 'body' 2006/9/10, Yehuda Katz [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Anyone have any idea about this. Resolving this issue is honestly the difference between using Prototype and jQuery for a particular project. On 9/8/06, *Yehuda Katz * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Stefan or anyone who can answer this, I'd like to use a sortable inside a container a la Google Maps. Unfortunately, the current sortable code lifts items wrapper inside a container out of the container (regardless of zIndex) so you can see the entire item being dragged. Is there a way to have a draggable item inside a container that stays inside the container when being dragged? -- Yehuda Katz Web Developer (ph)718.877.1325 -- Yehuda Katz Web Developer (ph)718.877.1325 ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ -- Paul Bakaus Web Developer Hildastr. 35 79102 Freiburg ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/___ jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/-- Yehuda Katz Web Developer(ph)718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggable in a container
True, that's the behavior. I will let you know when the new feature (to drag en element inside it's parent) is available for download. Yehuda Katz wrote: I was under the impression that contaiment kept the element constrained inside the parent element, so its X and Y coordinates could not be smaller than the X and Y coordinates of the parent. That's not what I need. I need something like Google Maps, where the element can be outside the parent box, but will still be wrapped inside it. -- Yehuda ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggable in a container
It's uploaded as the regular version, or is there a svn somewhere I need to download from?On 9/11/06, Stefan Petre [EMAIL PROTECTED] wrote:I uploaded the changes. The sad part is I change a lot in draggables but I haven't got the time to test everything. Again, I didn't test onSafari You have an extra parameter for Daraggables 'insideParent', this way thedragged element will not leave the parent.Yehuda Katz wrote: Thanks a ton Stefan, It really is the difference, in this case, between using Interface and Scriptaculous. I appreciate your hard work (as I've said before, community is a major strength of jQuery over Prototype and you're proving it here). Kudos. -- Yehuda On 9/11/06, *Stefan Petre* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: True, that's the behavior. I will let you know when the new feature (to drag en element inside it's parent) is available for download. Yehuda Katz wrote: I was under the impression that contaiment kept the element constrained inside the parent element, so its X and Y coordinates could not be smaller than the X and Y coordinates of the parent. That's not what I need. I need something like Google Maps, where the element can be outside the parent box, but will still be wrapped inside it. -- Yehuda ___ jQuery mailing list discuss@jquery.com mailto:discuss@jquery.com http://jquery.com/discuss/ -- Yehuda Katz Web Developer (ph) 718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/___jQuery mailing list discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph) 718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Draggable in a container
Anyone have any idea about this. Resolving this issue is honestly the difference between using Prototype and jQuery for a particular project.On 9/8/06, Yehuda Katz [EMAIL PROTECTED] wrote:Stefan or anyone who can answer this, I'd like to use a sortable inside a container a la Google Maps. Unfortunately, the current sortable code lifts items wrapper inside a container out of the container (regardless of zIndex) so you can see the entire item being dragged. Is there a way to have a draggable item inside a container that stays inside the container when being dragged? -- Yehuda KatzWeb Developer(ph)718.877.1325 -- Yehuda KatzWeb Developer(ph)718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Draggable in a container
Stefan or anyone who can answer this,I'd like to use a sortable inside a container a la Google Maps. Unfortunately, the current sortable code lifts items wrapper inside a container out of the container (regardless of zIndex) so you can see the entire item being dragged. Is there a way to have a draggable item inside a container that stays inside the container when being dragged? -- Yehuda KatzWeb Developer(ph)718.877.1325 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/