equal
deleted
inserted
replaced
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'); |