foundation-datetimepicker
foundation-datetimepicker copied to clipboard
Only shows one row of days
When trying to implement the calendar, only one row of days is visible. This makes the plugin not usable at the moment.
I was not able to reproduce this issue, can you please provide more specific feedback? Thanks!
The behavior is happening here: http://foundation-datetimepicker.peterbeno.com/example/example.html
I'll compare with foundation-datepicker to see if I can resolve it.
Thanks!
Is there any update on this issue as I am experiencing the same problem as well :S
I am still seeing this issue as well.
As far as I can tell the issue is in Datetimepicker.prototype.fill starting on line 439.
I replaced it with code from the parallel foundation-datepicker package and resolved the problem.
The relevant portion of my fill function now looks like (starting at line 438):
this.fillMonths();
var prevMonth = UTCDate(year, month, 0,0,0,0,0),
day = DPGlobal.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth());
prevMonth.setUTCDate(day);
prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.weekStart + 7)%7);
var nextMonth = new Date(prevMonth.valueOf());
nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);
nextMonth = nextMonth.valueOf();
var html = [];
var clsName;