11 Replies Latest reply on Jul 30, 2013 3:39 AM by Zaxist

    Fixing resp. pinning the navigation bar to the top of the browser


      Please help... I would like to fix the navigation bar on the top of the browser, so when you scroll down the page this navigation bar is staying always on the top of the browser. In this thread http://forums.adobe.com/message/4782547#4782547 heathrowe offered this solution:


      Check  the code for the Stage > compositionReady, as follows, that makes an element 'move' when page scrolls



             var element = sym.$("sidebar");



        .animate({"marginTop": ($(window).scrollTop() + 30) + "px"}, "slow" );



      Download sample here



      It is nice, but the navigation bar is moving, and I would like to have it ALWAYS on the top.


      Anyone knows how to solve this problem?


      Thanks in advance...