Add right padding to contributors graph
This commit is contained in:
parent
b20c63d5a7
commit
3b679ef9f1
1 changed files with 4 additions and 1 deletions
|
@ -108,9 +108,12 @@ export const ContributorsMasterGraph = (function(superClass) {
|
|||
extend(ContributorsMasterGraph, superClass);
|
||||
|
||||
function ContributorsMasterGraph(data1) {
|
||||
const $parentElement = $('#contributors-master');
|
||||
const parentPadding = parseFloat($parentElement.css('padding-left')) + parseFloat($parentElement.css('padding-right'));
|
||||
|
||||
this.data = data1;
|
||||
this.update_content = this.update_content.bind(this);
|
||||
this.width = $('.content').width() - 70;
|
||||
this.width = $('.content').width() - parentPadding - (this.MARGIN.left + this.MARGIN.right);
|
||||
this.height = 200;
|
||||
this.x = null;
|
||||
this.y = null;
|
||||
|
|
Loading…
Reference in a new issue