diff --git a/app/assets/javascripts/custom.js.coffee b/app/assets/javascripts/custom.js.coffee index 36b7251b..0b90e256 100644 --- a/app/assets/javascripts/custom.js.coffee +++ b/app/assets/javascripts/custom.js.coffee @@ -38,7 +38,7 @@ $(document).ready -> # timetable long events hover $('.event').mouseenter -> - heightSummary = $(this).find('.summary').outerHeight() + parseInt($(this).css('padding')) + heightSummary = $(this).find('.summary').outerHeight() + parseInt($(this).css('paddingTop')) heightEvent = $(this).outerHeight() if heightSummary > heightEvent $(this).addClass('expand')