Skip to content

Wrong initial position for elements if container has any margin. #2

@ervasive

Description

@ervasive

Hello Yannis, first of all, let me thank you for such a great and very helpful plugin.

I'm trying to build a grid of elements (in my case with fixed width), with some margins between those elements. The technique that I use, implies a negative margin for elements container (to normalize positions for first element in each row) and a positive margin for elements in a grid.

Now on initial placement I have some miscalculated position for elements but after any following reflows (e.g. window resize) position recalculates more accurate.

Here is an example: http://jsfiddle.net/S9eBE/

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions