rem: /*if( calendarEventDisplay.event.location ) { eventText += "\n" + calendarEventDisplay.event.location; }  if(  calendarEventDisplay.event.description ) { eventText += "\n" + calendarEventDisplay.event.description; } */  
context: DayView.prototype.createEventBox = function dayview_createEventBox( calendarEventDisplay ){      // build up the text to show for this event   var eventText = calendarEventDisplay.event.title;         var eventStartDate = calendarEventDisplay.displayDate;   var startHour = eventStartDate.getHours();   var startMinutes = eventStartDate.getMinutes();   var eventEndDateTime = new Date( 2000, 1, 1, calendarEventDisplay.event.end.hour, calendarEventDisplay.event.end.minute, 0 );   var eventStartDateTime = new Date( 2000, 1, 1, eventStartDate.getHours(), eventStartDate.getMinutes(), 0 );   var eventDuration = new Date( eventEndDateTime - eventStartDateTime );      var hourDuration = eventDuration / (3600000);      /*if( calendarEventDisplay.event.location )   {      eventText += "\n" + calendarEventDisplay.event.location;   }         if(  calendarEventDisplay.event.description )   {      eventText += "\n" + calendarEventDisplay.event.description;   }   */         var eventBox = document.createElement( "hbox" );      var topHeight = eval( ( startHour*kDayViewHourHeight ) + ( ( startMinutes/60 ) * kDayViewHourHeight ) );   topHeight = Math.round( topHeight ) - 1;   eventBox.setAttribute( "top", topHeight );   eventBox.setAttribute( "height", Math.round( ( hourDuration*kDayViewHourHeight ) + 1 ) );   var daywidth = parseInt(document.defaultView.getComputedStyle(document.getElementById("day-tree-item-0"), "").getPropertyValue("width"));   var width = Math.round( ( daywidth-kDayViewHourLeftStart ) / calendarEventDisplay.NumberOfSameTimeEvents );   eventBox.setAttribute( "width", width );   var left = eval( ( ( calendarEventDisplay.CurrentSpot - 1 ) * width )  + kDayViewHourLeftStart );   left = left - ( 1 * ( calendarEventDisplay.CurrentSpot - 1 ));   eventBox.setAttribute( "left", Math.round( left ) );   //eventBox.setAttribute( "style", "border: 1px solid red; width: "+width+"px; max-width: "+width+"px;max-height: "+eventBox.getAttribute( "height" )+"px;overflow: never;" );   //eventBox.setAttribute( "style", "border: 1px solid red;" );   eventBox.setAttribute( "class", "day-view-event-class" );   eventBox.setAttribute( "flex", "1" );   eventBox.setAttribute( "eventbox", "dayview" );   eventBox.setAttribute( "onclick", "dayEventItemClick( this, event )" );   eventBox.setAttribute( "ondblclick", "dayEventItemDoubleClick( this, event )" );   eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" );   eventBox.setAttribute( "tooltip", "savetip" );   eventBox.setAttribute( "name", "day-view-event-box-"+calendarEventDisplay.event.id );   if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )   {      eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );   }   var eventHTMLElement = document.createElement( "label" );   eventHTMLElement.setAttribute( "id", "day-view-event-html"+calendarEventDisplay.event.id );   var eventTextElement = document.createTextNode( eventText );   //eventHTMLElement.setAttribute( "class", "day-view-event-text-class" );   eventHTMLElement.appendChild( eventTextElement );   eventHTMLElement.setAttribute( "flex", "1" );   eventHTMLElement.setAttribute( "crop", "end" );   eventBox.appendChild( eventHTMLElement );   // add a property to the event box that holds the calendarEvent that the   // box represents      eventBox.calendarEventDisplay = calendarEventDisplay;      this.kungFooDeathGripOnEventBoxes.push( eventBox );            return( eventBox );}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7d10fad45b598a90de89c5287a83ce8c7f396cc0/calendarDayView.js/buggy/calendar/resources/content/calendarDayView.js