Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Incorrect number of rows when month starts and ends on weekend #15

Open
primski opened this issue Apr 19, 2013 · 0 comments
Open

Incorrect number of rows when month starts and ends on weekend #15

primski opened this issue Apr 19, 2013 · 0 comments

Comments

@primski
Copy link

primski commented Apr 19, 2013

Example: June 2013 has one unnecessary row containing only days from July.

This updated function fixes the problem:

TouchCalendarView.js:804:809

getTotalDays: function(date){
    var firstDate = Ext.Date.getFirstDateOfMonth(date);
    var lastDate = Ext.Date.getLastDateOfMonth(date);

    return this.isWeekend(firstDate) && !this.isWeekend(lastDate) ? 42 : 35;
},
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant