i initialize scolltofixed like this. but header does not have z-index:900.
is this a bug?
The zIndex option is working as expected on the main demo which is using the latest version of the library. Your code looks correct, but there must be something else going on. Is the header scrolling to a fixed position? Is it working otherwise?
Please reopen this issue if you are still having problems with this.