Skip to content

Margins rectangle consistency #47

Description

@jotakar

Hello,

I would like to suggest a modification to the data-jos_rootMargin attribute so that it can be interpreted as rootMargin.
I see that the rootMargin values are top% right% bottom% left% (as in CSS).
But data-jos_rootMargin is right% top% left% bottom%.
If I understand correctly, both attributes have similar meaning, or perhaps I am wrong in interpreting the functions of each attribute.
In any case, the usual way in CSS to handle the values is top right bottom left; using this order helps with consistency.
EDIT:
I'm trying to understand this attribute data-jos_rootMargin but it looks like it is not used, it has no effect in animation.
I digged in code and I can see that this attribute does not appear when calculate rootMargin.
I can see it does not use jos_rootmargin, but jos_rootmargin_top, jos_rootmargin_right, jos_rootmargin_left, jos_rootmargin_bottom.
Is ii a bug or am I confused?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions