context: MonthView.prototype.setNumberOfEventsToShow = function monthView_setNumberOfEventsToShow( ){  this.setFictitiousEvents() ;   //get the style height of the month view box.   var MonthViewBoxHeight = document.defaultView.getComputedStyle(this.dayBoxItemArray[24],"").getPropertyValue("height");   MonthViewBoxHeight = parseFloat( MonthViewBoxHeight ); //strip off the px at the end      //get the style height of the label of the month view box.   var MonthViewLabelHeight = document.defaultView.getComputedStyle(document.getElementById("month-week-4-day-4"), "").getPropertyValue("height");   MonthViewLabelHeight = parseFloat( MonthViewLabelHeight ); //strip off the px at the end      //get the height of an event box.   var eventBox = document.getElementById( "month-view-event-box-fictitious" );   //get the height of the event dot box holder.   var dotBox = document.getElementById( "dotboxholder-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 has 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(  ( MonthViewBoxHeight - MonthViewLabelHeight - 14) / EventBoxHeight )//    dump( "\nNactual"+( MonthViewBoxHeight - MonthViewLabelHeight ) / EventBoxHeight );//    dump( "\nM MonthViewBoxHeight: "+MonthViewBoxHeight );//    dump( "\nM MonthViewLabelHeight: "+MonthViewLabelHeight );//    dump( "\nM EventBoxHeight"+EventBoxHeight );//    dump( "\nM EventDotBoxHeight"+ EventDotBoxHeight );//    dump( "\nNnew : "+ numberOfEventsToShow) ;  this.numberOfEventsToShow = numberOfEventsToShow ;  // remove created event boxes  var Element = document.getElementById( "month-view-event-box-fictitious-dot") ;  Element.parentNode.removeChild(Element);  eventBox.parentNode.removeChild( eventBox );  dotBox.parentNode.removeChild( dotBox );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e6f91f1650b73e77526d064b4667bd2de11a3c76/monthView.js/buggy/calendar/resources/content/monthView.js