src/cm/media/js/client/c_layout.js
changeset 562 92e8e5aaacde
parent 532 0bad3613f59d
child 600 fda73ac53450
equal deleted inserted replaced
561:6da1a12084a9 562:92e8e5aaacde
    41   },
    41   },
    42 
    42 
    43   getTopICommentsWidth : function() {
    43   getTopICommentsWidth : function() {
    44     return this.getTopICommentsWidthFromWidth(this.sliderValToPx(gPrefs.get('layout','comments_col_width'))) ;
    44     return this.getTopICommentsWidthFromWidth(this.sliderValToPx(gPrefs.get('layout','comments_col_width'))) ;
    45   },
    45   },
    46   
    46 
       
    47   iCommentsRequiredThreadPadding : function () {
       
    48 	  return 2 * gConf['iCommentThreadPadding']; // PhA said : a threaded discussion with a depth of 2 still shoudn't hide the text 20100317
       
    49   },
       
    50 
    47   getTopICommentsWidthFromWidth : function(val) {
    51   getTopICommentsWidthFromWidth : function(val) {
    48     var ret = val - ( 2 * gConf['iCommentThreadPadding']) ; // PhA said : a threaded discussion with a depth of 2 still shoudn't hide the text 20100317
    52     var ret = val - this.iCommentsRequiredThreadPadding ();
    49     return ret - 7;
    53     return ret - 7;
    50   },
    54   },
    51   
    55   
    52   setLeftColumnWidth : function (colWidth) {
    56   setLeftColumnWidth : function (colWidth) {
    53     CY.get('#contentcolumn').setStyle('marginLeft', colWidth + 'px');
    57     CY.get('#contentcolumn').setStyle('marginLeft', colWidth + 'px');