You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
Not sure if this is the most elegant way of doing it; In fact I am sure its not, but it seems to address the positioning issue. Hope this helps someone else. (Also, I only tested on an iPhone)
Ext.define('My.app.override.TouchCalendarDayEvents',{override: 'Ext.ux.TouchCalendarDayEvents',constructor: function(config){this.callParent(arguments);},getVerticalDayPosition: function(event){varstartDate=event.data.Record.get(this.getPlugin().getStartEventField()),roundedStartDate=this.getRoundedTime(startDate),timeSlotCount=(roundedStartDate.getHours()*2)+(roundedStartDate.getMinutes()===30 ? 1 : 0),minutesDiff=(startDate.getTime()-roundedStartDate.getTime())/1000/60,firstTimeSlotEl=this.getCalendar().element.select('table.time-slot-table td',this.getCalendar().element.dom).first(),verticalPosition=0;if(firstTimeSlotEl){varfirstTimeSlotHeight=firstTimeSlotEl.getHeight(),firstTimeSlotY=firstTimeSlotEl.getY(),// first time slot position - needed so we take the header row into accountminutesPerPixel=firstTimeSlotHeight/30,extraMinutesY=minutesDiff*minutesPerPixel,pixelOffset=Math.floor(timeSlotCount/2)*2;if(firstTimeSlotHeight%2!==0)pixelOffset=pixelOffset+(timeSlotCount/2);if(timeSlotCount===0){verticalPosition=firstTimeSlotY+(timeSlotCount*firstTimeSlotHeight)+extraMinutesY;}else{verticalPosition=firstTimeSlotY+(timeSlotCount*firstTimeSlotHeight)+extraMinutesY-pixelOffset;}}returnverticalPosition;}});
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Does anyone know how to fix this?
The text was updated successfully, but these errors were encountered: