align icon indicating copy to clipboard operation
align copied to clipboard

Scroll Handler

Open sb8244 opened this issue 8 years ago • 1 comments

Firstly: thanks so much for an awesome set of components! These are really great.

I recently ran into a problem with position: fixed elements and the Trigger alignment. When using fixed, it will separate from the element and stay behind on the page. I noticed that window resizing fixed this and traced the effect down to this library.

Would you consider a PR that adds a scroll handler to this library? I feel that this could potentially end up having downstream effects on rc-trigger and other libraries that use it. It could potentially hook into the existing startMonitorWindowResize and monitorBufferTime properties.

Thanks!

sb8244 avatar Dec 29 '16 20:12 sb8244

https://github.com/react-component/align/pull/126/files
This is my local solution.

ccqgithub avatar Jun 23 '21 02:06 ccqgithub