From 5b235ce121daa22d66022d741018a0281f8404bb Mon Sep 17 00:00:00 2001 From: "T.S. Foster" Date: Tue, 20 Nov 2018 12:58:30 +0000 Subject: [PATCH] Add all styles to Internal.Junk.hoverAt --- src/Internal/Junk.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Internal/Junk.elm b/src/Internal/Junk.elm index 11f86be..4162757 100644 --- a/src/Internal/Junk.elm +++ b/src/Internal/Junk.elm @@ -196,7 +196,7 @@ hoverAt system x y styles view = xPercentage = (Coordinate.toSvgX system x + space) * 100 / system.frame.size.width yPercentage = (Coordinate.toSvgY system y) * 100 / system.frame.size.height - posititonStyles = + positionStyles = [ ( "left", String.fromFloat xPercentage ++ "%" ) , ( "top", String.fromFloat yPercentage ++ "%" ) , ( "margin-right", "-400px" ) @@ -207,9 +207,9 @@ hoverAt system x y styles view = ] containerStyles = - standardStyles ++ posititonStyles ++ styles + standardStyles ++ positionStyles ++ styles in - Html.div (List.map (\(p,v) -> Html.Attributes.style p v) styles) view + Html.div (List.map (\(p,v) -> Html.Attributes.style p v) containerStyles) view