Fix graph width on different screen sizes

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-06-11 23:00:38 +02:00
parent 190c9e9f39
commit aa38dfe938
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -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
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