rem: sizeToContent(); 
context: function updateRepeatUnitExtensions( ){   var repeatMenu = document.getElementById( "repeat-length-units" );   var weekExtensions = document.getElementById( "repeat-extenstions-week" );   var monthExtensions = document.getElementById( "repeat-extenstions-month" );   //FIX ME! WHEN THE WINDOW LOADS, THIS DOESN'T EXIST   if( repeatMenu.selectedItem )   {      switch( repeatMenu.selectedItem.value )       {           case "days":               weekExtensions.setAttribute( "collapsed", "true" );               monthExtensions.setAttribute( "collapsed", "true" );               sizeToContent();             break;                      case "weeks":               weekExtensions.setAttribute( "collapsed", "false" );               monthExtensions.setAttribute( "collapsed", "true" );               updateAdvancedWeekRepeat();               sizeToContent();             break;                      case "months":               weekExtensions.setAttribute( "collapsed", "true" );               monthExtensions.setAttribute( "collapsed", "false" );               updateAdvancedRepeatDayOfMonth();               sizeToContent();             break;                      case "years":               weekExtensions.setAttribute( "collapsed", "true" );               monthExtensions.setAttribute( "collapsed", "true" );               sizeToContent();             break;              }   }   }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3a0dacf65b7c4c0c8b2b0c58175993225e473dc5/calendarEventDialog.js/clean/calendar/resources/content/calendarEventDialog.js