I'm also interested in what techniques people use to deal with this.

We actually handle the scrolling position on the rest of the site like this
<https://github.com/Polymer/docs/blob/master/js/app.js#L141:L147>. When the
injected page is loaded, we scroll to the top (or to the anchor if there's
a hash).

The fact that it doesn't behave the same in the element docs is a bug
<https://github.com/Polymer/docs/issues/570>.


On Wed, Jul 30, 2014 at 9:26 PM, David Notik <[email protected]> wrote:

>  So even the Polymer website has this issue. This is an SPA-world problem.
>
> Repro: Go to
> http://www.polymer-project.org/docs/elements/core-elements.html, click on
> e.g. core-ajax on the left and scroll down to the middle, then goto
> core-xhr. Note the scroll position.
>
> What are some best practices considering that I a) want to avoid behavior
> like the above, but also b) want to preserve the scroll position for when I
> use the back arrow to goto a page I've already been? It'd be nice if
> core-pages had support built in.
>
> I've opened an issue as well:
> https://github.com/Polymer/core-pages/issues/8
>
> Originally brought up here:
> http://stackoverflow.com/questions/25046892/best-practice-for-resetting-scroll-position-between-pages
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/c1a46da2-bd24-427f-8447-c4613cf457f1%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/c1a46da2-bd24-427f-8447-c4613cf457f1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CACGqRCBYMcyRdbasj6UEpEcn%2BoX9z%2B80xSqQjh-NU8g5NQMgjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to