You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.
I am noticing an issue with the width/height calculation for container elements and how it translates to the static width after becoming sticky.
If the container element has padding the sticky element is still set to the full width of the element. This causes layout issues for the sticky element.
Could you update your plugin to at least have the following calculation be an option?
var styles = window.getComputedStyle(element);
var padding = parseFloat(styles.paddingLeft) +
parseFloat(styles.paddingRight);
return element.clientWidth - padding;
}```
Thanks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am noticing an issue with the width/height calculation for container elements and how it translates to the static width after becoming sticky.
If the container element has padding the sticky element is still set to the full width of the element. This causes layout issues for the sticky element.
Could you update your plugin to at least have the following calculation be an option?
The text was updated successfully, but these errors were encountered: