Coder Social home page Coder Social logo

a few changes about ngx-perfect-scrollbar HOT 5 CLOSED

zefoy avatar zefoy commented on July 17, 2024
a few changes

from ngx-perfect-scrollbar.

Comments (5)

sconix avatar sconix commented on July 17, 2024

Thanks, I will look into this.

from ngx-perfect-scrollbar.

sconix avatar sconix commented on July 17, 2024

I could not reproduce the problem. With correct styles the scrollbar did work inside router outlet as well. Perhaps you could give me some example code which reproduces the problem.

from ngx-perfect-scrollbar.

lghinet avatar lghinet commented on July 17, 2024

did you wrap it like this, or each component has its own perfect-scrollbar tag
<perfect-scrollbar class="full-width"> <router-outlet></router-outlet> </perfect-scrollbar>
maybe my style is wrong, but does make sense to get the same height of the perfect-scrollbar element,
this.elementRef.nativeElement.offsetHeight;
regardless of the content , as long as it scrolls

from ngx-perfect-scrollbar.

sconix avatar sconix commented on July 17, 2024

Ah I misunderstood you a bit, so you are placing the router outlet inside the ps element and not the otherway around :) I will test and verify that case later today.

from ngx-perfect-scrollbar.

sconix avatar sconix commented on July 17, 2024

Now when I stop to actually think about it your fix makes sense, but we also need to check for the change in scroller height as well as the content height. I will add a fix for this and release 0.6.1.

from ngx-perfect-scrollbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.