Skip to content

Commit

Permalink
Deleted extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
code-beast committed Oct 15, 2019
1 parent 3023bf1 commit 1b063ba
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/components/events-thumbnail/component.js
Expand Up @@ -75,15 +75,5 @@ export default Component.extend({
// change bar width and spacing to keep the thumbnail responsive
bars.attr('width', barWidth).attr('x', (build, idx) => barSpace * idx);
});

d3.select(window).on(`resize.${this.pipelineId}`, function resize() {
[barSpace, barWidth, paddingLeft, paddingRight] = getParameters(svg);

// change padding to the svg element so that it stays symmetrical
svg.style('padding', `0 ${paddingLeft} 0 ${paddingRight}`);

// change bar width and spacing to keep the thumbnail responsive
bars.attr('width', barWidth).attr('x', (build, idx) => barSpace * idx);
});
}
});

0 comments on commit 1b063ba

Please sign in to comment.