Commit aa38dfe9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix graph width on different screen sizes

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 190c9e9f
...@@ -50,7 +50,7 @@ class @ContributorsGraph ...@@ -50,7 +50,7 @@ class @ContributorsGraph
class @ContributorsMasterGraph extends ContributorsGraph class @ContributorsMasterGraph extends ContributorsGraph
constructor: (@data) -> constructor: (@data) ->
@width = $('.container').width() - 345 @width = $('.content').width() - 70
@height = 200 @height = 200
@x = null @x = null
@y = null @y = null
...@@ -123,7 +123,7 @@ class @ContributorsMasterGraph extends ContributorsGraph ...@@ -123,7 +123,7 @@ class @ContributorsMasterGraph extends ContributorsGraph
class @ContributorsAuthorGraph extends ContributorsGraph class @ContributorsAuthorGraph extends ContributorsGraph
constructor: (@data) -> constructor: (@data) ->
@width = $('.container').width()/2 - 225 @width = $('.content').width()/2 - 100
@height = 200 @height = 200
@x = null @x = null
@y = null @y = null
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment