Hi Lukas,

the jump is caused by MMovable._onMoveMouseUp, which uses 
setLayoutProperties instead of setDomPosition. I believe the difference 
is that setDomPosition bypasses the layout queue so the position is 
updated immediately while the user is moving the mouse. Try overriding 
setLayoutProperties and manipulating the "top" key in the properties map 
argument.

NB: A nicer way of accomplishing this goal would be to override 
MMovable.__computeMoveCoordinates but that's private so no can do :(


Regards,
Daniel

On 07/30/2012 04:09 PM, Lukas havemann wrote:
> Hi,
>
> i try to make a Composite Container movable, but only on the x-axis . So i
> included the MMovable and overrided the setDomPosition method but this
> doesn't work quit good, because after dragging the Element around it jumps
> on a diffrent position.
>
> What is the right way of doing this?
>
> Kind regards,
> Lukas
>
>
>
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/Move-Container-only-on-x-axis-tp7580828.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to