mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-14 07:41:11 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue