vue-headroom icon indicating copy to clipboard operation
vue-headroom copied to clipboard

Change the offset on resize

Open leandromatos opened this issue 6 years ago • 1 comments

It's possible to set new value of offset on window resize?

I try change props offset when window is resize, but the vue-headroom not recognized the new value of offset.

leandromatos avatar May 07 '19 16:05 leandromatos

running into the same issue as my header height changes between breakpoints. registering event listeners and debouncing this._setHeightOffset() should do it.

https://github.com/vuejs/vue/issues/1915#issuecomment-280014651 https://medium.com/vuejs-tips/tiny-debounce-for-vue-js-cea7a1513728

joernroeder avatar May 20 '19 09:05 joernroeder