Giter Club home page Giter Club logo

Comments (7)

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

Actually, now that I think about it, it's doing it very wrong. It shouldn't matter if the top of the page is overlapping the container, it should be sticky anyway. It's only the bottom of the box that matters as the opposite is true for the top aligned sticky element.

I've never used the bottom sticky element myself before, so I guess that's why I missed it.

from angular-sticky.

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

Hello Sean,

I'm not sure you already tried, but from the sound of it you need to use a container. A demo can be found here:
http://harm-less.github.io/angular-sticky/#!/demo/container

So make sure the container you use spans the entire section you'd like to have your element sticky.

Hopefully that will get you going.
Harm

from angular-sticky.

SRoddis avatar SRoddis commented on August 14, 2024

Hey Harm,
thanks for the quick response. Nice library btw. :)

I have tried the approach with the container, but it did not help to solve the "problem/feature".
I just made an example to show you the use case.

http://jsfiddle.net/51bsbzL0/407/

Cheers,
Sean

from angular-sticky.

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

Thanks for the kind words :)

I see now. It seems to fail on just one just pixel even after I've updated your fiddle with the following CSS:

html, body {
  margin: 0;
}

Maybe I need to account for this one pixel in the code. I'll check it out soon.

from angular-sticky.

dotKev avatar dotKev commented on August 14, 2024

#32 should resolve this issue.

from angular-sticky.

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

@SRoddis I released a new version that includes the fix from @dotKev for issue #32. Does this fix your problem?

from angular-sticky.

SRoddis avatar SRoddis commented on August 14, 2024

@harm-less:
Hey, sorry for the late reply!

The new version fixes the Problem. Great work.
http://jsfiddle.net/51bsbzL0/407/

Thank you!

Cheers,
Sean

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.