hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-07 13:25 UTC
Scriptaculous Effect scaling problem
Whenever I try to BlindDown/ScrollDown a div, it scrolls a few pixels too far and then it''ll hop back a few pixel to it''s intended size. It has nothing to do with the content of the div, since it''ll also do this when the div is empty. See the top-div at http://www.ttv-vvv.nl/home/startpagina/ Thanks in advance, Hendrik Nijmeijer, the Netherlands --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I think this is the default behavior. I also use the BlindDown/ScrollDown effect and it also does this. On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few pixels > too far and then it''ll hop back a few pixel to it''s intended size. It > has nothing to do with the content of the div, since it''ll also do > this when the div is empty. > > See the top-div at http://www.ttv-vvv.nl/home/startpagina/ > > Thanks in advance, > Hendrik Nijmeijer, the Netherlands > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-07 13:48 UTC
Re: Scriptaculous Effect scaling problem
I can''t see how this is default behaviour, and i''ve seen it working normally on i.e. the demo page of scriptaculous.... Hendrik On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think this is the default behavior. I also use the BlindDown/ScrollDown > effect and it also does this. > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few pixels > > too far and then it''ll hop back a few pixel to it''s intended size. It > > has nothing to do with the content of the div, since it''ll also do > > this when the div is empty. > > > See the top-div athttp://www.ttv-vvv.nl/home/startpagina/ > > > Thanks in advance, > > Hendrik Nijmeijer, the Netherlands--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Padding attack! Remove the vertical padding from the element and check if it works. Nicolas On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I can''t see how this is default behaviour, and i''ve seen it working > normally on i.e. the demo page of scriptaculous.... > > Hendrik > > On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I think this is the default behavior. I also use the BlindDown/ScrollDown > > effect and it also does this. > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few pixels > > > too far and then it''ll hop back a few pixel to it''s intended size. It > > > has nothing to do with the content of the div, since it''ll also do > > > this when the div is empty. > > > > > See the top-div athttp://www.ttv-vvv.nl/home/startpagina/ > > > > > Thanks in advance, > > > Hendrik Nijmeijer, the Netherlands > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-07 15:10 UTC
Re: Scriptaculous Effect scaling problem
Hmm, i''ve removed the padding, and however the "hop" is smaller, it''s still there... On Sep 7, 4:30 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Padding attack! Remove the vertical padding from the element and check > if it works. > > Nicolas > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I can''t see how this is default behaviour, and i''ve seen it working > > normally on i.e. the demo page of scriptaculous.... > > > Hendrik > > > On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I think this is the default behavior. I also use the BlindDown/ScrollDown > > > effect and it also does this. > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few pixels > > > > too far and then it''ll hop back a few pixel to it''s intended size. It > > > > has nothing to do with the content of the div, since it''ll also do > > > > this when the div is empty. > > > > > See the top-div athttp://www.ttv-vvv.nl/home/startpagina/ > > > > > Thanks in advance, > > > > Hendrik Nijmeijer, the Netherlands--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-07 15:20 UTC
Re: Scriptaculous Effect scaling problem
I think I fixed it with the removal of the border of the div, strange but true. Any explanations? On Sep 7, 5:10 pm, "hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hmm, i''ve removed the padding, and however the "hop" is smaller, it''s > still there... > > On Sep 7, 4:30 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Padding attack! Remove the vertical padding from the element and check > > if it works. > > > Nicolas > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I can''t see how this is default behaviour, and i''ve seen it working > > > normally on i.e. the demo page of scriptaculous.... > > > > Hendrik > > > > On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I think this is the default behavior. I also use the BlindDown/ScrollDown > > > > effect and it also does this. > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few pixels > > > > > too far and then it''ll hop back a few pixel to it''s intended size. It > > > > > has nothing to do with the content of the div, since it''ll also do > > > > > this when the div is empty. > > > > > > See the top-div athttp://www.ttv-vvv.nl/home/startpagina/ > > > > > > Thanks in advance, > > > > > Hendrik Nijmeijer, the Netherlands--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I suppose the problem is that it''s counting the offsetHeight without
considering the paddings and borders. This was discussed not long ago
in the prototype-core list I think.
Quick solution:
new Effect.BlindDown( $("element").wrap("div").up(), .... );
the wrapping div doesn''t have neither paddings nor borders, so it
should work fine :)
-Nicolas
On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I think I fixed it with the removal of the border of the div, strange
> but true.
>
> Any explanations?
>
> On Sep 7, 5:10 pm,
"hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Hmm, i''ve removed the padding, and however the
"hop" is smaller, it''s
> > still there...
> >
> > On Sep 7, 4:30 pm, "Nicolás Sanguinetti"
<godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > Padding attack! Remove the vertical padding from the element and
check
> > > if it works.
> >
> > > Nicolas
> >
> > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > > I can''t see how this is default behaviour, and
i''ve seen it working
> > > > normally on i.e. the demo page of scriptaculous....
> >
> > > > Hendrik
> >
> > > > On 7 sep, 15:38, "Antonio CS"
<antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > > I think this is the default behavior. I also use the
BlindDown/ScrollDown
> > > > > effect and it also does this.
> >
> > > > > On 9/7/07,
hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > > > > > Whenever I try to BlindDown/ScrollDown a div, it
scrolls a few pixels
> > > > > > too far and then it''ll hop back a few
pixel to it''s intended size. It
> > > > > > has nothing to do with the content of the div,
since it''ll also do
> > > > > > this when the div is empty.
> >
> > > > > > See the top-div
athttp://www.ttv-vvv.nl/home/startpagina/
> >
> > > > > > Thanks in advance,
> > > > > > Hendrik Nijmeijer, the Netherlands
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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 i was wondering about this because removing the padding in the site i am working on right now is not a solution, at least not an easy one to maintain the look & feel On 9/7/07, Nicolás Sanguinetti <godfoca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I suppose the problem is that it''s counting the offsetHeight without > considering the paddings and borders. This was discussed not long ago > in the prototype-core list I think. > > Quick solution: > > new Effect.BlindDown( $("element").wrap("div").up(), .... ); > > the wrapping div doesn''t have neither paddings nor borders, so it > should work fine :) > > -Nicolas > > On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I think I fixed it with the removal of the border of the div, strange > > but true. > > > > Any explanations? > > > > On Sep 7, 5:10 pm, "hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hmm, i''ve removed the padding, and however the "hop" is smaller, it''s > > > still there... > > > > > > On Sep 7, 4:30 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Padding attack! Remove the vertical padding from the element and > check > > > > if it works. > > > > > > > Nicolas > > > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > I can''t see how this is default behaviour, and i''ve seen it > working > > > > > normally on i.e. the demo page of scriptaculous.... > > > > > > > > Hendrik > > > > > > > > On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I think this is the default behavior. I also use the > BlindDown/ScrollDown > > > > > > effect and it also does this. > > > > > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few > pixels > > > > > > > too far and then it''ll hop back a few pixel to it''s intended > size. It > > > > > > > has nothing to do with the content of the div, since it''ll > also do > > > > > > > this when the div is empty. > > > > > > > > > > See the top-div athttp://www.ttv-vvv.nl/home/startpagina/ > > > > > > > > > > Thanks in advance, > > > > > > > Hendrik Nijmeijer, the Netherlands > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I can''t find reference to the wrap method. Can you give me a link to some reference please? On 9/7/07, Nicolás Sanguinetti <godfoca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I suppose the problem is that it''s counting the offsetHeight without > considering the paddings and borders. This was discussed not long ago > in the prototype-core list I think. > > Quick solution: > > new Effect.BlindDown( $("element").wrap("div").up(), .... ); > > the wrapping div doesn''t have neither paddings nor borders, so it > should work fine :) > > -Nicolas > > On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I think I fixed it with the removal of the border of the div, strange > > but true. > > > > Any explanations? > > > > On Sep 7, 5:10 pm, "hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hmm, i''ve removed the padding, and however the "hop" is smaller, it''s > > > still there... > > > > > > On Sep 7, 4:30 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Padding attack! Remove the vertical padding from the element and > check > > > > if it works. > > > > > > > Nicolas > > > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > I can''t see how this is default behaviour, and i''ve seen it > working > > > > > normally on i.e. the demo page of scriptaculous.... > > > > > > > > Hendrik > > > > > > > > On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I think this is the default behavior. I also use the > BlindDown/ScrollDown > > > > > > effect and it also does this. > > > > > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a few > pixels > > > > > > > too far and then it''ll hop back a few pixel to it''s intended > size. It > > > > > > > has nothing to do with the content of the div, since it''ll > also do > > > > > > > this when the div is empty. > > > > > > > > > > See the top-div athttp://www.ttv-vvv.nl/home/startpagina/ > > > > > > > > > > Thanks in advance, > > > > > > > Hendrik Nijmeijer, the Netherlands > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
here''s what a quick Google search found for me http://dev.rubyonrails.org/ticket/5732 On 9/7/07, Antonio CS <antoniocs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I can''t find reference to the wrap method. Can you give me a link to some > reference please? > > On 9/7/07, Nicolás Sanguinetti < godfoca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I suppose the problem is that it''s counting the offsetHeight without > > considering the paddings and borders. This was discussed not long ago > > in the prototype-core list I think. > > > > Quick solution: > > > > new Effect.BlindDown( $("element").wrap("div").up(), .... ); > > > > the wrapping div doesn''t have neither paddings nor borders, so it > > should work fine :) > > > > -Nicolas > > > > On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org < hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I think I fixed it with the removal of the border of the div, strange > > > but true. > > > > > > Any explanations? > > > > > > On Sep 7, 5:10 pm, " hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hmm, i''ve removed the padding, and however the "hop" is smaller, > > it''s > > > > still there... > > > > > > > > On Sep 7, 4:30 pm, "Nicolás Sanguinetti" <godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > Padding attack! Remove the vertical padding from the element and > > check > > > > > if it works. > > > > > > > > > Nicolas > > > > > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: > > > > > > > > > > I can''t see how this is default behaviour, and i''ve seen it > > working > > > > > > normally on i.e. the demo page of scriptaculous.... > > > > > > > > > > Hendrik > > > > > > > > > > On 7 sep, 15:38, "Antonio CS" <antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I think this is the default behavior. I also use the > > BlindDown/ScrollDown > > > > > > > effect and it also does this. > > > > > > > > > > > On 9/7/07, hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: > > > > > > > > > > > > Whenever I try to BlindDown/ScrollDown a div, it scrolls a > > few pixels > > > > > > > > too far and then it''ll hop back a few pixel to it''s intended > > size. It > > > > > > > > has nothing to do with the content of the div, since it''ll > > also do > > > > > > > > this when the div is empty. > > > > > > > > > > > > See the top-div athttp://www.ttv- vvv.nl/home/startpagina/ > > > > > > > > > > > > Thanks in advance, > > > > > > > > Hendrik Nijmeijer, the Netherlands > > > > > > > > > > > > > > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Element.wrap was added on 1.5.2_pre0 IIRC, but since 1.5.2 was dropped
in favor of 1.6.0, and 1.6 is still a release candidate, it''s not in
the "stable" version, and hence not in the docs.
Basically, element.wrap("tagName", { className: "stuff", id:
"stuff", ... }).
If you don''t pass any arguments, by defaults wraps your element on a
<div> tag.
On 9/7/07, Brian Williams
<brianw1975-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> here''s what a quick Google search found for me
>
> http://dev.rubyonrails.org/ticket/5732
>
>
>
>
> On 9/7/07, Antonio CS
<antoniocs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > I can''t find reference to the wrap method. Can you give me a
link to some
> reference please?
> >
> >
> > On 9/7/07, Nicolás Sanguinetti <
godfoca-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > >
> > > I suppose the problem is that it''s counting the
offsetHeight without
> > > considering the paddings and borders. This was discussed not long
ago
> > > in the prototype-core list I think.
> > >
> > > Quick solution:
> > >
> > > new Effect.BlindDown(
$("element").wrap("div").up(), .... );
> > >
> > > the wrapping div doesn''t have neither paddings nor
borders, so it
> > > should work fine :)
> > >
> > > -Nicolas
> > >
> > > On 9/7/07, hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <
hendrikn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > >
> > > > I think I fixed it with the removal of the border of the
div, strange
> > > > but true.
> > > >
> > > > Any explanations?
> > > >
> > > > On Sep 7, 5:10 pm, "
hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > > Hmm, i''ve removed the padding, and however the
"hop" is smaller,
> it''s
> > > > > still there...
> > > > >
> > > > > On Sep 7, 4:30 pm, "Nicolás Sanguinetti"
<godf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > >
> > > > > > Padding attack! Remove the vertical padding from
the element and
> check
> > > > > > if it works.
> > > > >
> > > > > > Nicolas
> > > > >
> > > > > > On 9/7/07,
hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote:
> > > > >
> > > > > > > I can''t see how this is default
behaviour, and i''ve seen it
> working
> > > > > > > normally on i.e. the demo page of
scriptaculous....
> > > > >
> > > > > > > Hendrik
> > > > >
> > > > > > > On 7 sep, 15:38, "Antonio CS"
<antoni...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > > > > > > > I think this is the default behavior. I
also use the
> BlindDown/ScrollDown
> > > > > > > > effect and it also does this.
> > > > >
> > > > > > > > On 9/7/07,
hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
<hendr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote:
> > > > >
> > > > > > > > > Whenever I try to
BlindDown/ScrollDown a div, it scrolls a
> few pixels
> > > > > > > > > too far and then it''ll hop
back a few pixel to it''s intended
> size. It
> > > > > > > > > has nothing to do with the content
of the div, since it''ll
> also do
> > > > > > > > > this when the div is empty.
> > > > >
> > > > > > > > > See the top-div athttp://www.ttv-
vvv.nl/home/startpagina/
> > > > >
> > > > > > > > > Thanks in advance,
> > > > > > > > > Hendrik Nijmeijer, the Netherlands
> > > >
> > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---