Comments (2)
I think it will be helpful to subscribe to router events and call update Ps.update(container);
on NavigationEnd
event. You could also make a config option to enable this auto update feature.
from ngx-perfect-scrollbar.
You need to get the reference to PerfectScrollbarComponent / Directive with ViewChild/ContentChild i.e. the normal Angular 2 way. Then you can call the provided functions or even get the reference to the perfect scrollbar library and do anything that the library supports.
The component does auto update in all normal situations i.e. when the size of the scroll area or content changes. Directive is bit less automatic since its meant for custom use cases and for building your own component which takes care of the auto updating etc. The component does not do auto update on router navigation end since there should not be need for an update the size changes detection should be enough for most common cases.
from ngx-perfect-scrollbar.
Related Issues (20)
- Native Scrollbars Support in ngx-prerfect-scrollbar HOT 1
- help/question x scrollbar position top
- Scroll to buttom and reduce the contents of the container, the scroll bar will not adapt to changes automatically HOT 1
- scrollbar focusing prevent configuration required
- ngx-perfect-scrollbar works properly in desktop but has some issue in IPad
- update perfect-scrollbar version to support minor releases to prevent scrollTop issues from the perfect-scrollbar package
- Support Angular 13
- Angular 13 ivy. Processing legacy "View Engine" libraries HOT 24
- SCRIPT1002 error in ie11 HOT 1
- Scrollbar is not activated when the 2nd last entry is split across two lines and thee min-scroll-bar-length is set
- update doc for scroll spy usage
- choppy scroll on touch devices
- Scroll not working for nested scroll containers on Mobile device.
- Angular 14: DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
- [Angular 14] not able to import perfect-scrollbar.component.css
- how to set the minHeight of the Scroll bar
- Is it possible to wrap scrollable content inside a fixed div?
- Sticky Header
- Keyboard scroll not working in mat-select
- Sometime Scroll bottom not working it is stack, and notable to scroll. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-perfect-scrollbar.