Closed yehudahkay closed 9 years ago
I fixed this by using
$('#calendar').kalendae({
mode: 'multiple',
months: 3,
direction: 'today-future'
});
Perhaps this is intentional? Although I'm not sure why it would work one way for the current month and different way for other months
Yes, it is intentional. Multi-month views always center on the viewStartDate (or start on it for calendars showing an even number of months). The reason today-future changes this behavior is because the user would not be able to select a day prior to the current month, so there's no reason to show them that month. It works the opposite for today-past.
Actually viewStartDate isn't centered when it is in the future rather it is the first month, so I'm not 100% sure I understood.
It centers when there is no direction defined. It aligns against an edge when future or past directions are used.
Hi Chipersoft, maybe I didn't explain 100%. If you use viewStartDate: '3/1/2015' it will start from May and move forward. If you use viewStartDate: '2/1/2015' it will put February in the middle. That's what I thought was inconsistent.
it will start from May
May? Not March?
On Feb 18, 2015, at 11:23 AM, yehudahkay notifications@github.com wrote:
Hi Chipersoft, maybe I didn't explain 100%. If you use viewStartDate: '3/1/2015' it will start from May and move forward. If you use viewStartDate: '2/1/2015' it will put February in the middle. That's what I thought was inconsistent.
— Reply to this email directly or view it on GitHub.
Sorry, March :-) I don't live in the US anymore
Oh, I see. I don't remember if that was the intent, but I'm ok with keeping it that way.
Hi I am trying this
If viewStartDate is set to a different month it will work. But if it is not set or set to February (current month) then the months shown are January, February, March. I see the same on the demo http://chipersoft.com/Kalendae/