Thank you Martín. It works fine!!! :-)

Ciao.

2009/7/29 Martin Wittemann <[email protected]>

> Hello Roberto,
>
> welcome to qooxdoo!
>
> You have to calculate the relative position in your application code.
> Take a look at the following code (e is the drag event):
>
> var pos = e.getTarget().getContainerLocation();
> var left = e.getDocumentLeft() - pos.left;
> var top = e.getDocumentTop() - pos.top;
>
> That should do the job.
>
> Regards,
> Martin
>
> Am 29.07.2009 um 11:21 schrieb Roberto Sánchez:
>
> > Hi, I'm new in Qooxdoo maillist, this is my first post.
> >
> > How can I get relative "left" and "top" position on target widget in
> > a drop event.
> >
> > I'm trying to positioning a child widget (e.g. Image) inside a
> > Container.
> >
> > I was looking for "getLeft" in Drag event, but there is only
> > absolute positioning info with getDocumentLeft()
> >
> > All examples and snippets that I found are not for LayoutItems, I
> > need to make an add(..) in a container (with Cavas as layout) of a
> > source widget draggable.
> >
> > Thanks in advance.
> >
> > --
> > Roberto Sánchez
> > Software Engineer
> >
> > [email protected]
> >
> ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> > 30-Day
> > trial. Simplify your report design, integration and deployment - and
> > focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.
> http://p.sf.net/sfu/bobj-july_______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
Roberto Sánchez
Software Engineer

[email protected]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to