mendixlabs/CalendarWidget

Calendar Widget Start Position not working as intended

RoelandSalij opened this issue · 0 comments

https://mxforum.mendix.com/questions/7397/Calendar-Widget-Start-Position-not-working-as-intended

I found a solution for your problem. Turned out it is a bug in the calendar widget. Follow the steps below to fix the problem.

Go to the widgets directory (root of the project probably).
Extract Calendar.mpk.
Open calendar.js inside the extracted Calendar>calendar>widget folder.
Search for the _renderCalendar function.
Inside this function there's a comment that starts with //go to the startposition if we have one and below the comment there's an if with something like if (this._mxObj && ....
Copy the comment and the complete if below.
Search for update : function(obj, callback) {.
Paste the copied part of the code right below this._fetchObjects(); inside the function.