I can't find when a embedded scaffold can call scroll_to method,
neither using render_component nor ajax. Really, using render_component
shouldn't execute any javascript code.
Can you set a breakpoint in first line of ActiveScaffold.scroll_to and
reload the page? So you can get the trace in web inspector (chrome) or
firebug (firefox)
I'm not getting that behaviour, without using render_component, which
could be more probable to scroll becuase using ajax to load embedded
scaffolds.
On Fri, 25 May 2012 10:24:04 -0400, Nick Rogers <
ncro...@gmail.com>
wrote:
> I tried setting ActiveScaffold.js_config = { },
> and ActiveScaffold.js_config = {:scroll_on_close => false }
>
> I have a view with 4 nested scaffolds. I am using render_component to
> render the inline scaffolds. I make my browser window is small enough
> that I have to scroll to see all the scaffolds. After the page loads,
> javascript is causing the browser to scroll to the last scaffold so
> that the last scaffold is in the viewport.
>
> For example:
>
> "apples" %>
>
> "oranges" %>
>
> "monkeys" %>
>
> "dogs" %>
>
> // browser scrolls so this scaffold in viewport
> "cats" %>
>
> On Thu, May 24, 2012 at 3:22 PM, wrote:
> Scrolling is not a new behaviour, but I had some issues while I was
> trying to improve it. Please, explain more your issue. Anyway you can
> disable all scrolling with ActiveScaffold.js_config
>
https://github.com/activescaffold/active_scaffold/wiki/JS-config [2]
>
> By default, scrolling should happen only when displaying messages or
> opening nested scaffolds or forms and the top is out of viewport.
>
> On Thu, 24 May 2012 13:15:59 -0400, Nick Rogers
> wrote:
>
>> I have a page with a few nested scaffolds in it. Recent versions of
> > active_scaffold seem to automatically scroll my browser to the
> bottom
> > of the page (the last nested scaffold). Is there a way to disable
> this
> > new behavior? Thanks.
> >
> > -Nick
> >
> > --
> > You received this message because you are subscribed to the
> Google
> > Groups "ActiveScaffold : Ruby on Rails plugin" group.
> > To post to this group, send email to
>
actives...@googlegroups.com [4].
> > To unsubscribe from this group, send email to
> >
activescaffol...@googlegroups.com [5].
> > For more options, visit this group at
> >
http://groups.google.com/group/activescaffold?hl=en [6].
>
> --
> You received this message because you are subscribed to the Google
> Groups "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to
actives...@googlegroups.com
> [7].
> To unsubscribe from this group, send email to
>
activescaffol...@googlegroups.com [8].
> For more options, visit this group at
>
http://groups.google.com/group/activescaffold?hl=en [9].
> Links:
> ------
> [1] mailto:
ser...@entrecables.com
> [2]
https://github.com/activescaffold/active_scaffold/wiki/JS-config
> [3] mailto:
ncro...@gmail.com
> [4] mailto:
actives...@googlegroups.com
> [5] mailto:
activescaffold%2Bunsu...@googlegroups.com
> [6]
http://groups.google.com/group/activescaffold?hl=en
> [7] mailto:
actives...@googlegroups.com
> [8] mailto:
activescaffold%2Bunsu...@googlegroups.com
> [9]
http://groups.google.com/group/activescaffold?hl=en