foundation-datetimepicker icon indicating copy to clipboard operation
foundation-datetimepicker copied to clipboard

Only shows one row of days

Open shri opened this issue 11 years ago • 4 comments

When trying to implement the calendar, only one row of days is visible. This makes the plugin not usable at the moment.

shri avatar Mar 03 '13 19:03 shri

I was not able to reproduce this issue, can you please provide more specific feedback? Thanks!

najlepsiwebdesigner avatar Mar 25 '13 10:03 najlepsiwebdesigner

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!

mbrakken avatar Oct 23 '13 17:10 mbrakken

Is there any update on this issue as I am experiencing the same problem as well :S

clockwork189 avatar Nov 26 '13 16:11 clockwork189

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;

funkju avatar Feb 05 '14 21:02 funkju