Materialize: Scrollspy does not move with scroll

Created on 13 Oct 2017  路  4Comments  路  Source: Dogfalo/materialize

Expected Behavior

http://materializecss.com/scrollspy.html
Scrollspy table of contents should scroll along with scroll down/up.

Current Behavior

Scrollspy table of contents sticks where it is initialized.

Possible Solution

Maybe fixed position can be added corresponding class?

Steps to Reproduce (for bugs)


See live demo at https://codepen.io/anon/pen/qPyzgz

Your Environment

Windows 10
Chrome Version 60.0.3112.113 (Official Build) (64-bit)

Sources

https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js
https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css

Most helpful comment

Hello reyou,
my solution is this: https://codepen.io/anon/pen/wrRXrP
You can try this with your code, I hope it works! :)

All 4 comments

Hello reyou,
my solution is this: https://codepen.io/anon/pen/wrRXrP
You can try this with your code, I hope it works! :)

Hello @Dogfalo, could you please let me know why this is closed? It this a wrong/invalid issue?

This is just a How-to question and not a bug, look at the Pushpin plugin, that is what you need.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruslandzhumaev picture ruslandzhumaev  路  3Comments

heshamelmasry77 picture heshamelmasry77  路  3Comments

samybob1 picture samybob1  路  3Comments

MickaelH974 picture MickaelH974  路  3Comments

djensen47 picture djensen47  路  3Comments