>
> <core-item id="core_item2" label="Topic2" horizontal center layout>
>                   <a href="javascript:document.querySelector('html /deep/
> #end_p1').scrollIntoView()"><paper-ripple
> fit></paper-ripple></a></core-item>
>
> <a href="javascript:document.querySelector('html /deep/
> #core_scroll_header_panel').scroller.scrollTop = 0;" id="end_p1">go to
> top</a> ,
>
>

I would suggest not to put javascript on href, instead I think for your use
case you can simply do something like this:

<paper-item label="Topic 1" on-tap="{{scrollToTop}}"></paper-item>

scrollToTop: function() {
  this.$.core_scroll_header_panel.scroller.scrollTop = 0;
},

Here is a jsbin I modified from your sample code in another thread.
http://jsbin.com/xuwogawapomi/1/edit

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/CAAGTQkC57%2Bxsu0wJC1B8Sxg4r5otGd%3DagMOKA94Rb1ue76he9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to