SwarmOnline/Ext.ux.TouchCalendar

Event bars in Month view not aligned properly

Opened this issue · 1 comments

Hi Stuart,

Currently the event bars for month view start out from its date box.
It looked proper after following changes:

File: Ext.ux.TouchCalendarMonthEvents.js
Line No: 106

Changes:

eventBar.setLeft((dayEl.dom.offsetLeft + (hasWrapped ? 0 : 4)) || (dayCellX + (hasWrapped ? 0 : spacing)));

eventBar.setTop(eventY - eventBarHeight - (barPosition * eventBarHeight + (barPosition * spacing) + spacing) - 5);

eventBar.setWidth((dayCellWidth * barLength) - (spacing * (doesWrap ? (doesWrap && hasWrapped ? 0 : 1) : 2)) - 5);

Thanks for sharing!!!