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,11 +46,7 @@ class window.ContributorsGraph | ||
46 | 46 | ||
47 | class window.ContributorsMasterGraph extends ContributorsGraph | 47 | class window.ContributorsMasterGraph extends ContributorsGraph |
48 | constructor: (@data) -> | 48 | constructor: (@data) -> |
49 | - if $(window).width() > 1214 | ||
50 | - @width = 1100 | ||
51 | - else | ||
52 | - @width = 870 | ||
53 | - | 49 | + @width = $('.container').width() - 70 |
54 | @height = 200 | 50 | @height = 200 |
55 | @x = null | 51 | @x = null |
56 | @y = null | 52 | @y = null |
@@ -124,11 +120,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph | @@ -124,11 +120,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph | ||
124 | 120 | ||
125 | class window.ContributorsAuthorGraph extends ContributorsGraph | 121 | class window.ContributorsAuthorGraph extends ContributorsGraph |
126 | constructor: (@data) -> | 122 | constructor: (@data) -> |
127 | - if $(window).width() > 1214 | ||
128 | - @width = 490 | ||
129 | - else | ||
130 | - @width = 380 | ||
131 | - | 123 | + @width = $('.container').width()/2 - 100 |
132 | @height = 200 | 124 | @height = 200 |
133 | @x = null | 125 | @x = null |
134 | @y = null | 126 | @y = null |