Fixes #186 - changed CSS top value for hover to be an int

This commit is contained in:
wbond 2013-04-24 23:22:29 -04:00
parent d8667c72dd
commit a1c74d6a82

View File

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