rem: document.getElementById( "exception-dates-listbox" ).appendItem( DateLabel, dateToAdd.getTime() ); 
add: var listbox = document.getElementById( "exception-dates-listbox" ); listbox.ensureElementIsVisible( listbox.appendItem( DateLabel, dateToAdd.getTime() )); 
context: function addException( dateToAdd ){   if( !dateToAdd )   {      //get the date from the date and time box.      //returns a date object      dateToAdd = document.getElementById( "exceptions-date-picker" ).value;   }      if( isAlreadyException( dateToAdd ) )      return;   var DateLabel = formatDate( dateToAdd );   //add a row to the listbox   document.getElementById( "exception-dates-listbox" ).appendItem( DateLabel, dateToAdd.getTime() );   sizeToContent();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d188385278bb193b55b0092e10feccf6dd00236b/toDoDialog.js/clean/calendar/resources/content/toDoDialog.js