[Bug]: Grid Columns Not Sizing Correctly on Open #149
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ai-collab/bulk-image-organizer#149
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
App version
0.3.6
Platform
Windows
Steps to reproduce
Open Directory with enough images to generate multiple grid rows
Expected behavior
Columns are equally spaced to use available room
Actual behavior
The last column is being wrapped onto a new line creating a large amount of unused space on the right, likely due to not calculating the size of the scroll bar. Changing the grid thumbnail zoom level up or down then back causes a proper refresh populating the last column as expected.
Additional context
No response
Fix on branch
0.4.1/issue-149-grid-columns-selectionGrid columns (#149)
Root cause: column math often ran against a stale viewport width.
MainWindow.resizeEventdoes not fire when the content splitter applies the right-panel width (setSizes), and open/load could size the grid before the scrollbar appeared. Changing zoom forced a correct re-layout — matching the report.Changes:
GridViewportResizeFilterre-applies justified column layout on list/viewport resize (covers splitter and stack changes)._schedule_apply_display_size+ re-apply after right-panel apply, splitter move, and DB preload.showEventapplies right-panel width before display sizing.Sequential multi-row selection (extra report)
Shift+click in IconMode was using a visual rectangle (square block of columns) instead of list order through intervening rows.
Changes:
GridSelectionFilternow selects contiguous model rows from the selection anchor through the clicked item. Also avoidssetCurrentIndexwiping a multi-select after the range is applied.Verification
ruff check/ruff format --checkclean on touched filespytestfor grid selection, PR7 shell (incl. new column-fit test), thumbnail sizing, grid input filters — all passedBranch is pushed; leaving the issue open until you verify in the UI / request a PR to
main.PR opened for review: branch
0.4.1/issue-149-grid-columns-selection→main(release 0.4.2).