trelliscope / trelliscopejs-lib

JavaScript viewer for Trelliscope displays
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

Preserve first panels in view when number of rows changes due to UI interactions #783

Closed hafen closed 1 year ago

hafen commented 1 year ago

Here's an example. Open this in a window and resize the window so that two rows are barely able to fit:

https://hafen.github.io/trelliscope-examples3/magic_trelliscopes/#ncol=5&arr=rows&pg=5&labels=name,power&sidebar=3&fv=

image

Now add labels until it switches to one row:

image

Ideally the first card visible in the first view "Charge of the Mites" will still be the first card showing in the second view when the number of rows has changed.

@jefferymills this is probably pretty easy to fix based off your latest work on layout.

Incin commented 1 year ago

This also seems to be related but if you add a filter and shrink it down you can break the pagination see screenshot

Image