[Moo] Fx.Move

6 messages Options
Embed this post
Permalink
Trevor Orr

[Moo] Fx.Move

Reply Threaded More More options
Print post
Permalink
Can Fx.Move move the specified element to negative coordinates off the left or top of the browser window?



anutron

[Moo] Re: Fx.Move

Reply Threaded More More options
Print post
Permalink
yes, but it defaults to not do this. you have to specify allowNegative = true when the relativeTo is the document.body (the default)

On Fri, Nov 6, 2009 at 7:34 AM, Trevor Orr <[hidden email]> wrote:
Can Fx.Move move the specified element to negative coordinates off the left or top of the browser window?




The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com
Trevor Orr

[Moo] Re: Fx.Move

Reply Threaded More More options
Print post
Permalink
great thanks, this is not documented would be nice to have that in the docs.



On Fri, Nov 6, 2009 at 9:14 AM, Aaron Newton <[hidden email]> wrote:
yes, but it defaults to not do this. you have to specify allowNegative = true when the relativeTo is the document.body (the default)


On Fri, Nov 6, 2009 at 7:34 AM, Trevor Orr <[hidden email]> wrote:
Can Fx.Move move the specified element to negative coordinates off the left or top of the browser window?





anutron

[Moo] Re: Fx.Move

Reply Threaded More More options
Print post
Permalink
* allowNegative - (*boolean*) if *true*, AND the element is not a descendent of an element that is positioned (relative or absolute), then the position will not allow negative values.

that's from the docs of Element.Position (which Fx.Move references).

What's not there is that false is the default. I've added that.

On Fri, Nov 6, 2009 at 9:45 AM, Trevor Orr <[hidden email]> wrote:
great thanks, this is not documented would be nice to have that in the docs.



On Fri, Nov 6, 2009 at 9:14 AM, Aaron Newton <[hidden email]> wrote:
yes, but it defaults to not do this. you have to specify allowNegative = true when the relativeTo is the document.body (the default)


On Fri, Nov 6, 2009 at 7:34 AM, Trevor Orr <[hidden email]> wrote:
Can Fx.Move move the specified element to negative coordinates off the left or top of the browser window?






The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com
Trevor Orr

[Moo] Re: Fx.Move

Reply Threaded More More options
Print post
Permalink
okay thanks, guess I will have to check the referenced classes from now on.



On Fri, Nov 6, 2009 at 9:49 AM, Aaron Newton <[hidden email]> wrote:
* allowNegative - (*boolean*) if *true*, AND the element is not a descendent of an element that is positioned (relative or absolute), then the position will not allow negative values.

that's from the docs of Element.Position (which Fx.Move references).

What's not there is that false is the default. I've added that.

On Fri, Nov 6, 2009 at 9:45 AM, Trevor Orr <[hidden email]> wrote:
great thanks, this is not documented would be nice to have that in the docs.



On Fri, Nov 6, 2009 at 9:14 AM, Aaron Newton <[hidden email]> wrote:
yes, but it defaults to not do this. you have to specify allowNegative = true when the relativeTo is the document.body (the default)


On Fri, Nov 6, 2009 at 7:34 AM, Trevor Orr <[hidden email]> wrote:
Can Fx.Move move the specified element to negative coordinates off the left or top of the browser window?







anutron

[Moo] Re: Fx.Move

Reply Threaded More More options
Print post
Permalink
Fx.Move is just Element.Position with a transition applied. Element.position has an option to return the destination coordinates rather than actually moving the element. Fx.Move calls Element.position with this option enabled, getting back the location for the element, and then uses Fx.Morph to move the element.

On Fri, Nov 6, 2009 at 10:04 AM, Trevor Orr <[hidden email]> wrote:
okay thanks, guess I will have to check the referenced classes from now on.




On Fri, Nov 6, 2009 at 9:49 AM, Aaron Newton <[hidden email]> wrote:
* allowNegative - (*boolean*) if *true*, AND the element is not a descendent of an element that is positioned (relative or absolute), then the position will not allow negative values.

that's from the docs of Element.Position (which Fx.Move references).

What's not there is that false is the default. I've added that.

On Fri, Nov 6, 2009 at 9:45 AM, Trevor Orr <[hidden email]> wrote:
great thanks, this is not documented would be nice to have that in the docs.



On Fri, Nov 6, 2009 at 9:14 AM, Aaron Newton <[hidden email]> wrote:
yes, but it defaults to not do this. you have to specify allowNegative = true when the relativeTo is the document.body (the default)


On Fri, Nov 6, 2009 at 7:34 AM, Trevor Orr <[hidden email]> wrote:
Can Fx.Move move the specified element to negative coordinates off the left or top of the browser window?








The MooTools Tutorial: www.mootorial.com Clientcide: www.clientcide.com