context: MultiweekView.prototype.setNumberOfEventsToShow = function multiweekView_setNumberOfEventsToShow( ){  this.setFictitiousEvents() ;   //get the style height of the month view box.   var MultiweekViewBoxHeight = document.defaultView.getComputedStyle(this.dayBoxItemArray[ 3 ],"").getPropertyValue("height");   MultiweekViewBoxHeight = parseFloat( MultiweekViewBoxHeight ); //strip off the px at the end      //get the style height of the label of the month view box.   var MultiweekViewLabelHeight = document.defaultView.getComputedStyle(document.getElementById("multiweek-week-1-day-4"), "").getPropertyValue("height");   MultiweekViewLabelHeight = parseFloat( MultiweekViewLabelHeight ); //strip off the px at the end      //get the height of an event box.   var eventBox = document.getElementById( "multiweek-view-event-box-fictitious" );   //get the height of the event dot box holder.   var dotBox = document.getElementById( "multiweekdotbox-fictitious" );  if( !dotBox || !eventBox)     return;  var EventBoxHeight = document.defaultView.getComputedStyle( eventBox, "" ).getPropertyValue( "height" );  EventBoxHeight = parseFloat( EventBoxHeight ); //strip off the px at the end  // BUG ? : the following computation doesnot return the height of dotBoxHolder as expected  // Could someone has a good idea why ?  // To overcome, I put a value of 11px for the Height  // I had also a margin of 3px  var EventDotBoxHeight = document.defaultView.getComputedStyle( dotBox, "" ).getPropertyValue( "height" );  EventDotBoxHeight = parseFloat( EventDotBoxHeight ); //strip off the px at the end     //calculate the number of events to show.  var numberOfEventsToShow = parseInt(  ( MultiweekViewBoxHeight - MultiweekViewLabelHeight - 14) / EventBoxHeight )//     dump( "\nNactual"+( MultiweekViewBoxHeight - MultiweekViewLabelHeight ) / EventBoxHeight );//     dump( "\nM MultiweekViewBoxHeight: "+MultiweekViewBoxHeight );//     dump( "\nM MultiweekViewLabelHeight: "+MultiweekViewLabelHeight );//     dump( "\nM EventBoxHeight"+EventBoxHeight );//     dump( "\nM EventDotBoxHeight"+ EventDotBoxHeight );//     dump( "\nNnew : "+ numberOfEventsToShow) ;  this.numberOfEventsToShow = numberOfEventsToShow ;  // remove created event boxes  var Element = document.getElementById( "multiweek-view-event-box-fictitious-dot") ;  Element.parentNode.removeChild(Element);  eventBox.parentNode.removeChild( eventBox );  dotBox.parentNode.removeChild( dotBox );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9227b65a1bb031e8cf298cf85edd75eed18fde3b/multiweekView.js/buggy/calendar/resources/content/multiweekView.js