src/cm/media/js/site/c_text_view_comments_to_frame.js
changeset 421 3ddbfa64f596
parent 341 053551f213fb
child 468 24b4923125c5
--- a/src/cm/media/js/site/c_text_view_comments_to_frame.js	Thu May 10 14:20:10 2012 +0200
+++ b/src/cm/media/js/site/c_text_view_comments_to_frame.js	Fri May 11 12:00:40 2012 +0200
@@ -46,6 +46,11 @@
   gICommentForm['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px') ;
   changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ;
   
+  //toc
+  //For some reasons: gToc['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px');
+  // does not work when the div.c-toc has a fixed position.
+  document.getElementsByClassName('c-toc')[0].style.width = iCommentWidth + 'px';
+  
   if (gNewReply) 
     changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; 
   if (gEdit)