Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all styles to Internal.Junk.hoverAt #58

Merged
merged 1 commit into from
Jul 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Internal/Junk.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand All @@ -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



Expand Down