wvega / timepicker

A jQuery plugin to enhance standard form input fields helping users to select (or type) times
http://timepicker.co
GNU General Public License v2.0
216 stars 93 forks source link

Allow widget to be attached to a different DOM element #78

Open wvega opened 8 years ago

wvega commented 8 years ago

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.