continuouscalendar / jquery-continuous-calendar

Date picker and range selector with scrollable months instead of paged (the only right way to do it)
http://continuouscalendar.github.io/jquery-continuous-calendar/
85 stars 35 forks source link

Add popup toggle callback #86

Closed omahlama closed 9 years ago

omahlama commented 9 years ago

In my project, I need to do some custom javascript positioning for the popup, to make sure it fits on the screen. For this I need a hook inside the continuous calendar code.

eeroan commented 9 years ago

I'm curious to know what the callback does. Could it be useful for all? Should it be part of the calendar code?

omahlama commented 9 years ago

It looks at the offset and size of the .popUpContainer relative to the window. If either side of the popup is outside the screen, I change the position of the container to keep it inside the screen.

This could possibly be done in a generic way, for now I used a callback to fix the specific case.

omahlama commented 9 years ago

Do you think you could do a point release? It would be nice to use a released version in production code instead of pointing bower to master.