Commit b765d7d739be09997257dbea21ad854c33eb3890
1 parent
b1b3f485
Exists in
spb-stable
and in
3 other branches
Scale graphs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
10 deletions
Show diff stats
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
| ... | ... | @@ -46,11 +46,7 @@ class window.ContributorsGraph |
| 46 | 46 | |
| 47 | 47 | class window.ContributorsMasterGraph extends ContributorsGraph |
| 48 | 48 | constructor: (@data) -> |
| 49 | - if $(window).width() > 1214 | |
| 50 | - @width = 1100 | |
| 51 | - else | |
| 52 | - @width = 870 | |
| 53 | - | |
| 49 | + @width = $('.container').width() - 70 | |
| 54 | 50 | @height = 200 |
| 55 | 51 | @x = null |
| 56 | 52 | @y = null |
| ... | ... | @@ -124,11 +120,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph |
| 124 | 120 | |
| 125 | 121 | class window.ContributorsAuthorGraph extends ContributorsGraph |
| 126 | 122 | constructor: (@data) -> |
| 127 | - if $(window).width() > 1214 | |
| 128 | - @width = 490 | |
| 129 | - else | |
| 130 | - @width = 380 | |
| 131 | - | |
| 123 | + @width = $('.container').width()/2 - 100 | |
| 132 | 124 | @height = 200 |
| 133 | 125 | @x = null |
| 134 | 126 | @y = null | ... | ... |