src/cm/media/js/client/c_layout.js
changeset 217 613b2f29be54
parent 112 f52aeba468f8
child 341 053551f213fb
equal deleted inserted replaced
207:4b5aaa0c8545 217:613b2f29be54
    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 	getTopICommentsWidthFromWidth : function(val) {
    47 	getTopICommentsWidthFromWidth : function(val) {
    48 		return val - 7;
    48 		var ret = val - ( 2 * gConf['iCommentThreadPadding']) ; // PhA said : a threaded discussion with a depth of 2 still shoudn't hide the text 20100317
       
    49 		return ret - 7;
    49 	},
    50 	},
    50 	
    51 	
    51 	setLeftColumnWidth : function (colWidth) {
    52 	setLeftColumnWidth : function (colWidth) {
    52 		CY.get('#contentcolumn').setStyle('marginLeft', colWidth + 'px');
    53 		CY.get('#contentcolumn').setStyle('marginLeft', colWidth + 'px');
    53 		CY.get('#leftcolumn').setStyle('width', colWidth + 'px');
    54 		CY.get('#leftcolumn').setStyle('width', colWidth + 'px');