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

Vertical Only Positioning? #1646

Open
MikeiLL opened this issue Jan 4, 2023 · 0 comments
Open

Vertical Only Positioning? #1646

MikeiLL opened this issue Jan 4, 2023 · 0 comments

Comments

@MikeiLL
Copy link

MikeiLL commented Jan 4, 2023

I posted this question on StackOverflow, which may be a more appropriate venue for it:

https://stackoverflow.com/questions/75011976/isotopejs-with-vertical-only-positioning-updates-possible

Isotope JS will probably work nicely to filter events in a calendar-style display, but the trouble is getting it to keep items in the appropriate column.

The problem, when items for tues-thursday are filtered out:

|monday|tuesday|wednesday|thursday|friday|saturday|
---------------------------------------------------
| mon 1| fri 1 | sat 1 |

My config:

var iso = new Isotope( '.schedule tbody', {
  itemSelector: 'td',
  layoutMode: 'masonry',
  resize: true
});

And a Codepen example.

Thinking maybe fitColumns is the tool, but the .arrange method doesn't seem to work in that layout mode:

var iso = new Isotope(".schedule tbody", {
  layoutMode: 'fitColumns',
  itemSelector: '.grid-item'
});

...

iso.arrange({ filter: filterValue }); // nothing

Another codepen.

Any suggestions?

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

No branches or pull requests

1 participant