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:
Olly Smith 2013-04-24 23:11:33 -07:00
commit 80c63ab164

View File

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