Datepicker in a dialog

Datepicker in a dialog


Hello
I'm using the datepicker in a modal dialog. The problem is, when I
scroll the dialog content (which often happens) and the datepicker is
visible, it does not scroll sticked to the bottom of the input field.
Which is obvious to me, because it has an absolute position relative
to the document body.
My solution to this so far is, that on the dialog's scroll event (but
on drag and resize as wellI recalculate the position and change. This
works, but not so smooth, it has a delay, and of course, it's not too
efficient.
Any other ideas to solve this? Of course I have the same issue with
the timepicker and autocomplete plugins as well.
Istvan