Giter Club home page Giter Club logo

Comments (4)

harm-less avatar harm-less commented on August 14, 2024 2

Interesting case, I don't think I tried this before. Perhaps it's also fixed if you use ng-if instead of an ng-show?
One other thing you could try is this (look for enable). But from the sound of it, you want to make the element invisible. You could try a ng-show in combination with enable, but that seems like overkill.

That's all I can think of right now. Let me know if you need any more help with this.

from angular-sticky.

daniel-halldorsson avatar daniel-halldorsson commented on August 14, 2024

fyi: i solved for my use case by putting the hl-sticky on a containing div and the ng-show on another div inside it but may not be suitable for all cases.

from angular-sticky.

daniel-halldorsson avatar daniel-halldorsson commented on August 14, 2024

thanks again for quick reply.
can confirm it works if using ng-if instead of ng-show.

ng-show combined with enable did not work.

ng-if works fine and there are work arounds for ng-show so not a major show stopper but just a little niggle.

cheers, awesome library :)

from angular-sticky.

harm-less avatar harm-less commented on August 14, 2024

If you're not switching the ng-if condition too often, it should also give you a little performance boost ;)

I'll keep these things in mind, thanks for verifying them.
I'm closing this issue.

from angular-sticky.

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.