javascript - scrolltofixed bottom with angular ng-repeat -


i using angular-scrolltofixed plugin , works great.

the problem starts when try put limit options bottom bar

 $('.footer').scrolltofixed( { bottom: 0, limit: $('.footer').offset().top } ); 

the 'limit' variable being calculated before page being rendered (ng-repeat etc) , result limit attribute not right.

try this, script loads after entire document loads

<html>     <head> </head>     <body>      <!--          write  code      -->         <script>          //add angualar js script here          </script>     </body>  </html> 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -