mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01: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
|
top = parentHeight / 2 - hoverHeight / 2
|
||||||
else
|
else
|
||||||
top = parentHeight / 2 - hoverHeight / 2
|
top = parentHeight / 2 - hoverHeight / 2
|
||||||
@el.css(left: left + "px", top: top + "px")
|
@el.css(left: left + "px", top: parseInt(top) + "px")
|
||||||
|
|
||||||
show: ->
|
show: ->
|
||||||
@el.show()
|
@el.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user