Positioning the datepicker
Hi All,
I'm hoping someone on here will be able to help. I've got a date picker setup, and this is activated from a button click as per normal. I've been asked to make three months appear, which I've done and all is fine in that respect. The only issue is the placement of the date picker once it has opened. Now with the three months being output, the middle monthappears under the button that was clicked, with the next month appearing outside of the layout we are trying to keep within.
I've seen posts on forums talking about positioning using the beforeShow function like this:
beforeShow: function(input, inst)
{
inst.dpDiv.css({ top: '0'});
//inst.dpDiv.css({marginTop: '0px', marginLeft: '0px', top: '0', left: '100px'});
}
but when I do this, the top and left attributes seem to be ignored, and the datepicker renders as per its default settings.
Does anyone know how to position the date picker reliably?
TIA