From 8700477cd55ed122d0073da9d43b98d7dac2ebe6 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 1 Aug 2016 10:59:50 -0400 Subject: [PATCH] adjusted the hover pop out div y by 20 px so the top most hover trigger doesn't open the div off screen after hover --- campground-map.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/campground-map.php b/campground-map.php index 7ab0bcf..b74b4d9 100644 --- a/campground-map.php +++ b/campground-map.php @@ -360,8 +360,8 @@ $js_categories = json_encode($categories); tool_tip[0].style.left = x + pop_up_width + "px"; tool_tip[0].style.top = (y - pop_up_height - 5) + "px"; } else if( side == "right"){ - tool_tip[0].style.left = x - pop_up_width + "px"; - tool_tip[0].style.top = (y - pop_up_height - 5) + "px"; + tool_tip[0].style.left = x - pop_up_width - 10 + "px"; + tool_tip[0].style.top = (y - pop_up_height + 20) + "px"; } }, function () { -- 2.17.1