Comments (7)
would it be possible to get an minimal html/css/js reproducing the problem, or at least as page I can look at that has the issue
from sticky-kit.
Yeah, come monday I will create a little page.
About to leave for the weekend here.
from sticky-kit.
No rush, thanks
from sticky-kit.
Ok, had to come in for a few hours.
http://www.websites4you.com/demo/test/1.0.4/
http://www.websites4you.com/demo/test/no-sticky/
Yeah, does it in this demo to.
So scroll down a bit when the sticky take effect.
Then resize the screen. You will see the non-sticky does not do that at all.
I know many people do not resize their screen much.
But worried it may have that issue on a specific screen size.
Resolved my sidebar jumping off of screen.
CHANGED:
return elm.css({
position: "fixed",
bottom: padding_bottom,
top: "auto"
}).trigger("sticky_kit:bottom");
TO:
return elm.css({
position: "absolute",
bottom: padding_bottom,
top: "auto"
}).trigger("sticky_kit:bottom");
from sticky-kit.
I have hit similar problem. My sticky element went to the bottomed = true
state although it should be always sticked to the top. Never to the bottom. The core cause of this problem was that internal recalc()
was not called automatically when neighboring elements resized. As a result sticky calculated positions based on incorrect metrics.
Manually running following code resolved my issue (at all places when the visual neighborhood changes due to jQuery show/hide calls):
$(document.body).trigger('sticky_kit:recalc');
$('.fixed-scroll-header').stick_in_parent();
from sticky-kit.
Interesting I had this same issue on a newer website this week. What I discovered... the downloads minified and non-minified are different versions. I would go with the unminified, none of this would happen. Using the minified version, this would do all of this.
from sticky-kit.
Hi sir
https://wisdomhealthwealth.com/articles/entertainment
I have a problem with this i already put this script and its still flashing
$('#sidebar-sticky')
.on('sticky_kit:bottom', function(e) {
$(this).parent().css('position', 'static');
})
.on('sticky_kit:unbottom', function(e) {
$(this).parent().css('position', 'relative');
})
Hope you can help me with this thanks
from sticky-kit.
Related Issues (20)
- width changes when it stick on the top
- Use scrollTop of parent_selector instead of window? HOT 2
- Stick element to top of parent when viewport is shorter than sticky element HOT 1
- Scrolling stops working in chrome 65 HOT 11
- How to make a dynamical offset_top? HOT 7
- Is it possible to have everything move to its stuck position?
- Sticky element sometimes juddering outside of parent element
- Ctrl+F results not located?
- Sticking within fixed scrolling element
- Sticky item jumps to the bottom too early
- Top position continually readjusting on some sidebars HOT 1
- SSL on leafo.net causes demo to break due to insecure content being blocked HOT 1
- Sticky kit with Infinite Scroll
- Add force flag - in case of later change of height
- $ is not defined (with webpack) HOT 3
- sticky-kit not working my product page.?
- Issue with flexbox parent HOT 1
- Sticky-kit doesn't work with Angular HOT 2
- Future of this lib: Maintained fork / Call to maintainers / Alternatives ? HOT 5
- After changing parent's height, child's iframe reloaded.
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 sticky-kit.