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