src/cm/media/js/site/c_text_view_comments_to_frame.js
changeset 421 3ddbfa64f596
parent 341 053551f213fb
child 468 24b4923125c5
equal deleted inserted replaced
420:0c2f890486c0 421:3ddbfa64f596
    44 
    44 
    45   //forms
    45   //forms
    46   gICommentForm['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px') ;
    46   gICommentForm['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px') ;
    47   changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ;
    47   changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ;
    48   
    48   
       
    49   //toc
       
    50   //For some reasons: gToc['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px');
       
    51   // does not work when the div.c-toc has a fixed position.
       
    52   document.getElementsByClassName('c-toc')[0].style.width = iCommentWidth + 'px';
       
    53   
    49   if (gNewReply) 
    54   if (gNewReply) 
    50     changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; 
    55     changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; 
    51   if (gEdit) 
    56   if (gEdit) 
    52     changeFormFieldsWidth(gEdit['ids']['formId'], iCommentWidth) ; 
    57     changeFormFieldsWidth(gEdit['ids']['formId'], iCommentWidth) ; 
    53 }
    58 }