Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation: Graphics.Element (absolute, relative) #186
Conversation
justinmanley
added some commits
Mar 5, 2015
pushed a commit
that referenced
this pull request
Nov 19, 2015
evancz
closed this
Nov 19, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
evancz
Nov 19, 2015
Member
I added in something along these lines (it wouldn't merge properly) so hopefully what I ended up is good enough now. Thanks for pointing this out!
|
I added in something along these lines (it wouldn't merge properly) so hopefully what I ended up is good enough now. Thanks for pointing this out! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
justinmanley commentedMar 5, 2015
It was unclear to me how different types of
Positions (Absolute IntvsRelative Float), so I added a note to the documentation.It's a bit confusing. As it turns out, the important difference is not int vs. float, but how the
numberis interpreted.Absolutepositions are interpreted as pixel values, whileRelativepositions are interpreted as percentage values.See https://github.com/elm-lang/core/blob/abcb93e93a263cdd8fda739735f87974dc63729a/src/Native/Graphics/Element.js#L221 to understand how
Absolute/Relativevalues are used in the native code.