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

Modal container div to scroll #95

Open
miriamramos opened this issue Jul 30, 2018 · 0 comments
Open

Modal container div to scroll #95

miriamramos opened this issue Jul 30, 2018 · 0 comments

Comments

@miriamramos
Copy link

miriamramos commented Jul 30, 2018

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

Current behavior

I have a page that has a scroll and this page open a modal, in this modal I have a div that contains a scroll that I target and put in a container, but this not working, if I remove the container tag the backgroud page scroll but I need the div that is inside the modal.

Minimal reproduction of the problem with instructions

In my ngOnInit() function

const config: ScrollToConfigOptions = {
container: 'custom-container',
target: 'scrollar',
offset: 200
};
this._scrollToService.scrollTo(config);

In my html

aroud a custom-container div
<div [ngSwitch]="view" style="overflow-y: scroll;height: 640px;" id="scrollar">

Environment


Angular version: 5.1.0

Your version of `@nicky-lenaers/ngx-scroll-to`:
^0.6.1

Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 6.1.0
- Platform:  Windows 
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

1 participant