Skip to content

Commit

Permalink
Scale graphs
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
  • Loading branch information
dzaporozhets committed Jan 4, 2014
1 parent b1b3f48 commit b765d7d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/assets/javascripts/stat_graph_contributors_graph.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ class window.ContributorsGraph

class window.ContributorsMasterGraph extends ContributorsGraph
constructor: (@data) ->
if $(window).width() > 1214
@width = 1100
else
@width = 870

@width = $('.container').width() - 70
@height = 200
@x = null
@y = null
Expand Down Expand Up @@ -124,11 +120,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph

class window.ContributorsAuthorGraph extends ContributorsGraph
constructor: (@data) ->
if $(window).width() > 1214
@width = 490
else
@width = 380

@width = $('.container').width()/2 - 100
@height = 200
@x = null
@y = null
Expand Down

0 comments on commit b765d7d

Please sign in to comment.