SwarmOnline / Ext.ux.TouchCalendar

Sencha Touch Calendar component
113 stars 47 forks source link

Event bars in Month view not aligned properly #24

Open ajinkyac opened 11 years ago

ajinkyac commented 11 years ago

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);

trevoriancox commented 11 years ago

Thanks for sharing!!!