src/cm/media/js/site/c_text_view_comments_to_frame.js
changeset 468 24b4923125c5
parent 421 3ddbfa64f596
child 562 92e8e5aaacde
equal deleted inserted replaced
467:47f54d0c46dd 468:24b4923125c5
    47   changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ;
    47   changeFormFieldsWidth(gICommentForm['formId'], iCommentWidth) ;
    48   
    48   
    49   //toc
    49   //toc
    50   //For some reasons: gToc['overlay'].get('boundingBox').setStyle('width', iCommentWidth + 'px');
    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.
    51   // does not work when the div.c-toc has a fixed position.
    52   document.getElementsByClassName('c-toc')[0].style.width = iCommentWidth + 'px';
    52   document.getElementById('the-toc').style.width = iCommentWidth + 'px';
    53   
    53   
    54   if (gNewReply) 
    54   if (gNewReply) 
    55     changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; 
    55     changeFormFieldsWidth(gNewReply['ids']['formId'], iCommentWidth) ; 
    56   if (gEdit) 
    56   if (gEdit) 
    57     changeFormFieldsWidth(gEdit['ids']['formId'], iCommentWidth) ; 
    57     changeFormFieldsWidth(gEdit['ids']['formId'], iCommentWidth) ;