From 654444fa75170c5b07d56fbba7d36129ec3eaf11 Mon Sep 17 00:00:00 2001 From: vdv73rus Date: Wed, 3 Apr 2013 17:37:00 +0400 Subject: [PATCH] Firefox padding height bug fixed. --- app/assets/javascripts/custom.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')