Skip to content

Commit

Permalink
Merge pull request #229 from wbond/hover-wiggle
Browse files Browse the repository at this point in the history
Fixes #186 - changed CSS top value for hover to be an int
  • Loading branch information
oesmith committed Apr 25, 2013
2 parents d8667c7 + a1c74d6 commit 80c63ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/morris.hover.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 80c63ab

Please sign in to comment.