See this question in Stack Overflow for an description of a problem caused by having the widget attached to the body element.
This CodePen includes a modified version of the plugin with a partial solution. The code is not fully working because calculating the position of the widget gets trickier if it has to be positioned relative to a different DOM element.
See this question in Stack Overflow for an description of a problem caused by having the widget attached to the
body
element.This CodePen includes a modified version of the plugin with a partial solution. The code is not fully working because calculating the position of the widget gets trickier if it has to be positioned relative to a different DOM element.