marcoslmartin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-07 09:47 UTC
SlideDown and scaleX true and scaleY false
Hi there I''ve found that when trying to make a SlideDown on a div with the options {scaleX: true, scaleY:false} it didn''t make the desired effect it just jumps from nothing to the final state, after looking for the bug I arrived to this line in the code: effect.element.makeClipping().setStyle({height: ''0px''}).show(); this line was the one that was making me crazy :|. The solution should be something like this: if(this.options.scaleX) effect.element.makeClipping().setStyle({width: ''0px''}).show(); if(this.options.scaleY) effect.element.makeClipping().setStyle({height: ''0px''}).show(); but actually it doesn''t work :( because the options are not in the effect but the way to the solution must be something like this ... what do you think?? The version I''m using of scriptaculous is the v1.7 and the buggy line is the 714. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
thanks for that! just to mention it: it is line 714 in the effects.js On 7 Mai, 11:47, "marcoslmar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <marcoslmar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi there I''ve found that when trying to make aSlideDownon a div with > the options {scaleX: true, scaleY:false} it didn''t make the desired > effect it just jumps from nothing to the final state, after looking > for the bug I arrived to this line in the code: > > effect.element.makeClipping().setStyle({height: ''0px''}).show(); > > this line was the one that was making me crazy :|. The solution should > be something like this: > > if(this.options.scaleX) > effect.element.makeClipping().setStyle({width: ''0px''}).show(); > if(this.options.scaleY) > effect.element.makeClipping().setStyle({height: ''0px''}).show(); > > but actually it doesn''t work :( because the options are not in the > effect but the way to the solution must be something like this ... > what do you think?? > > The version I''m using of scriptaculous is the v1.7 and the buggy line > is the 714.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
These options are not really supported with SlideDown. You should copy the SlideDown code and create a new effect that does what you like. Best, Thomas Am 29.05.2007 um 11:37 schrieb d0nut:> > thanks for that! > just to mention it: it is line 714 in the effects.js > > On 7 Mai, 11:47, "marcoslmar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <marcoslmar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> Hi there I''ve found that when trying to make aSlideDownon a div with >> the options {scaleX: true, scaleY:false} it didn''t make the desired >> effect it just jumps from nothing to the final state, after looking >> for the bug I arrived to this line in the code: >> >> effect.element.makeClipping().setStyle({height: ''0px''}).show(); >> >> this line was the one that was making me crazy :|. The solution >> should >> be something like this: >> >> if(this.options.scaleX) >> effect.element.makeClipping().setStyle({width: ''0px''}).show(); >> if(this.options.scaleY) >> effect.element.makeClipping().setStyle({height: ''0px''}).show(); >> >> but actually it doesn''t work :( because the options are not in the >> effect but the way to the solution must be something like this ... >> what do you think?? >> >> The version I''m using of scriptaculous is the v1.7 and the buggy line >> is the 714. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---