• Resolved AdiRMG

    (@adirmg)


    Hello.

    I like your plug-in very much and i am using it for my blog to pull images from Zenfolio, but i have something that bothers me.

    When i select Masonry layout the thumbnails are not correctly sorted.

    They are sorted like this:
    1 4 7
    2 5 8
    3 6 9

    instead of like this, the normal way:
    1 2 3
    4 5 6
    7 8 9

    How do i make the plugin sort the thumbnails the normal way?

Viewing 1 replies (of 1 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Actually Photonic is doing it the correct way. In fact, that is how the browser automatically lays out the content – Photonic doesn’t dictate the sequence.

    Do remember that Masonry is a vertically stacked layout, so things appear in a vertical sort order. Think of a newspaper article, structured in multiple paragraphs. After the first paragraph finishes, the second goes under it, not to the right of it. Each photo is treated like a paragraph of an article by the masonry layout.

    Also consider this: suppose you have photos of varying heights e.g. from your second example if 1 is taller than 2, 5 and 8 put together, then next to 4 you will get 11, destroying the perceived sort order. That is why masonry always sequences objects vertically.

Viewing 1 replies (of 1 total)

The topic ‘Masonry layout thumbnails sorting’ is closed to new replies.