mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-09-21 10:41:32 +02:00
Fixes #186 - changed CSS top value for hover to be an int
This commit is contained in:
parent
d8667c72dd
commit
a1c74d6a82
@ -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