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
I'm having problems when I insert new elements to an initialized sticky element on Android Chrome. Looks like the resize is already calculated and it doesn't get updated after a new element gets inside the wrapper.
Any solutions on how to tackle this?
Regards
The text was updated successfully, but these errors were encountered:
I did a hotfix for the moment. It might help you to understand my problem:
if $('.sticky').length
StickyState.prototype.recalcHeight = ->
@onResize()
@render()
window.sticky = new StickyState(document.querySelectorAll('.sticky'),
scrollClass:
down: 'header-scroll-down'
up: 'header-scroll-up'
persist: true
)
Now I can call window.sticky.recalcHeight() whenever I change the DOM and add extra childs inside the sticky. Had to swtich to a nasty window object unfortunately 👎
Hey,
I'm having problems when I insert new elements to an initialized sticky element on Android Chrome. Looks like the resize is already calculated and it doesn't get updated after a new element gets inside the wrapper.
Any solutions on how to tackle this?
Regards
The text was updated successfully, but these errors were encountered: