Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid behaviour #10

Open
EugeneFeshchenko opened this issue Feb 2, 2015 · 1 comment
Open

Invalid behaviour #10

EugeneFeshchenko opened this issue Feb 2, 2015 · 1 comment

Comments

@EugeneFeshchenko
Copy link

After upgrade to v3.2.1 plugin does work. But does not work as expected.
On my project it highlights wrong elements. Take a look at screenshot:
screen

note position of scrollbar and that very last element is highlited and first one is not.
I populate items dynamically, maybe this is issue. Code looks like that

<ul class="contest">
      <li ng-repeat="item in docs">
        <a ng-click="scrollTo('section'+item.id)" data-scrollspy-listen="section{{item.id}}">{{ item.title }}</a>
        <ul>
          <li ng-repeat="cont in item.doccontent_set">
            <a ng-click="scrollTo('topic'+cont.id)" data-scrollspy-listen="topic{{cont.id}}">{{ cont.title }}</a>
          </li>
        </ul>
      </li>
    </ul>

Also scrolling page doesn't help much. Any other item isn't activated, except the one 'Tutorial' on a more or less valid scroll position.

@patrickmarabeas
Copy link
Owner

If you could replicate the issue in a plnkr (/ fork demo) or similar, easily, that would be fantastic (eg try applying your dynamic creation to the ScrollSpy demo). I should be able to have a noodle over it in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants