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

Issue 16 #44

Closed
wants to merge 3 commits into from
Closed

Issue 16 #44

wants to merge 3 commits into from

Conversation

localBlackMage
Copy link

#16

The problem turned out to be that the ng-scrollable hadn't compiled before the children, so it wouldn't respond to any $scope.$emit's made by children nor would it properly examine the size of the DOM.

Moving the link function to preLink fixes this by having ng-scrollable compile BEFORE child elements.

Updated documentation, reversing $emit and $broadcast as $emit goes UP the DOM, $broadcast goes DOWN the DOM.

…ctives will compile before children directives. This will fix the issue with children calling .emit not reaching the ngScrollable as it hadn't been compiled yet. Updated the readme.md, reversing and as goes UP along the DOM and goes DOWN, so children of ngScrollable should be calling rather than .
@echa
Copy link
Owner

echa commented Apr 22, 2017

I finally remembered your PR .. :/ and made a version less intrusive in the number of lines changed (due to indentation). Closing this now.

@echa echa closed this Apr 22, 2017
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

Successfully merging this pull request may close these issues.

2 participants