From 51d2097536e809b5d0264a412158e1e5431c71fe Mon Sep 17 00:00:00 2001 From: koala-lava <15828770+koala-lava@users.noreply.github.com> Date: Mon, 25 Nov 2019 13:21:29 +0700 Subject: [PATCH] Consistent HTML for the task source and solution --- .../2-hoverintent/source.view/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view/index.html b/2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view/index.html index 856daf3a..df0f1365 100644 --- a/2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view/index.html +++ b/2-ui/3-event-details/3-mousemove-mouseover-mouseout-mouseenter-mouseleave/2-hoverintent/source.view/index.html @@ -3,10 +3,9 @@ - Document - + @@ -26,6 +25,8 @@ new HoverIntent({ elem, over() { + tooltip.style.left = elem.getBoundingClientRect().left + 5 + 'px'; + tooltip.style.top = elem.getBoundingClientRect().bottom + 5 + 'px'; tooltip.hidden = false; }, out() {