How to make the jQuery Sticky Float plug-in react live to page changes?

余生长醉 提交于 2019-12-10 11:00:04

问题


I've been looking at the really rather wonderful 'stickyfloat' plug-in (http://plugins.jquery.com/files/stickyfloat_0.htm) for jQuery for a project I'm working on. I need to keep a panel on the right of the page 'in view' as the content on the left scrolls. The stickyfloat plug-in works a treat but it doesn't update it calculations if you use jQuery to effect the length of the content block in which it sits.

Is there any way I might be able to adjust this plug-in to make it respect live changes to the content div height?


回答1:


I wrote this plugin, and I have re-posted it and fixed this issue of height being changed dynamically after the plugin was initiated, check this out:

http://dropthebit.com/74/sticky-floating-box/



来源:https://stackoverflow.com/questions/5093001/how-to-make-the-jquery-sticky-float-plug-in-react-live-to-page-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!