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

Empty columns #91

Open
a1tem opened this issue Sep 18, 2019 · 4 comments
Open

Empty columns #91

a1tem opened this issue Sep 18, 2019 · 4 comments

Comments

@a1tem
Copy link

a1tem commented Sep 18, 2019

Hi, do you know why this can happen?
Снимок экрана 2019-09-18 в 18 18 42
I use it with infinity loader at the beginning all goes well, and then at some time all the tiles go in the incorrect order.

@shershen08
Copy link
Owner

It is really hard to say what's happening without seeing the code on the page ( do you think it would be possible to have a demo page reproducing the issue ?

@HyperC
Copy link

HyperC commented Aug 12, 2020

@shershen08 I'm also encountering this issue. It's fairly easy to reproduce. For example:

<div
          v-masonry
          :percentPosition="true"
          :gutter="4"
          origin-top="true"
          class="cards-container"
          column-width=".tile"
          horizontal-order="true"
          origin-left="false"
          transition-duration="0"
          fit-width="true"
          item-selector=".tile">
          <div
            v-masonry-tile class="tile"
            v-for="tile in new Array(100)"
            :style="{height: Math.floor(((Math.random() * 10) * 50) + 1) + 'px'}"/>
        </div>
.tile {
    background-color: green;
    width: 50px;
    margin-bottom: 10px;
}

Will render something like this (screenshot shows the bottom of the page):
image

..while you expect it to try and fit every column as best possible.

Example when changing the .tile width to 50%:

image

@pixelomo
Copy link

Try origin-left="true"

@scheinercc
Copy link

@a1tem did pixelomo's suggestion fix it for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants