mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
Merge pull request #229 from wbond/hover-wiggle
Fixes #186 - changed CSS top value for hover to be an int
This commit is contained in:
commit
80c63ab164
@ -32,7 +32,7 @@ class Morris.Hover
|
||||
top = parentHeight / 2 - hoverHeight / 2
|
||||
else
|
||||
top = parentHeight / 2 - hoverHeight / 2
|
||||
@el.css(left: left + "px", top: top + "px")
|
||||
@el.css(left: left + "px", top: parseInt(top) + "px")
|
||||
|
||||
show: ->
|
||||
@el.show()
|
||||
|
Loading…
Reference in New Issue
Block a user