Skip to content

[Bug]: Thumbnail Grid Doesn't Update Properly After Search #1431

Description

@CyanVoxel

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

TagStudio v9.6.0/main

Operating System & Version

macOS 15.7.7

Description

After initially loading a library, performing a search or opening a new library will cause an issue with the thumbnail grid where it will no longer expand to fill the available window space. It can be shrunk when resizing the window smaller than the existing icon space, but resizing it larger will only let the icons take up a limited amount of space. Reapplying the search will update the icons to fill the space at first, but the issue reappears when attempting to resize again. It also appears that the scrollbar is appearing and disappearing based on where it expects the icons to normally be, not where they actually are on the screen.
Image

Expected Behavior

The thumbnail grid should always reorganize to fit the available space, and the scrollbar should not disappear when items are cutoff on the screen.

Steps to Reproduce

  1. Open a TagStudio library with a decent amount of files (~20+)
  2. Resize the window larger and smaller, observing normal behavior
  3. Enter a search that also produces a decent amount of items or load a different library
  4. Repeat step 2, though this time notice how the thumbnails do not resize properly

Logs

Occasionally I'm able to get this error from the logs:

IndexError: list index out of range
Error calling Python override of QLayout::setGeometry(): Traceback (most recent call last):
  File "/Users/cyanvoxel/Local/Dev/TagStudio/src/tagstudio/qt/thumb_grid_layout.py", line 218, in setGeometry
    self.visible_changed.emit(self._entry_ids[start])
                              ~~~~~~~~~~~~~~~^^^^^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: HighAn important issue requiring attentionType: BugSomething isn't working as intendedType: UI/UXUser interface and/or user experience

    Type

    Projects

    Status
    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions