Fix Asset List rows vanishing after switching tabs - #8
Merged
Conversation
The asset and class lists are double-buffered (LVS_EX_DOUBLEBUFFER). When their tab is hidden and shown again — e.g. filter the Asset List, switch to Asset Classes, switch back — the stale back buffer is blitted, so the rows look gone and only paint (offset) where the mouse later invalidates. Force a full Invalidate() on the list when its tab becomes active. Co-Authored-By: Clue Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Filter the Asset List by type (e.g. VideoClip), switch to the Asset Classes tab, then switch back to Asset List — the rows are gone. Moving the mouse makes them reappear, but offset toward the middle instead of at the top.
Cause
The Asset List (and Asset Classes) list is a double-buffered
ListView(LVS_EX_DOUBLEBUFFER, added for smooth virtual scrolling). When its TabPage is hidden and later shown, WinForms blits the stale back buffer instead of repainting, so the rows look gone; only the regions the mouse later invalidates get painted (hence the partial, offset rows).Fix
Force a full
Invalidate()on the relevant list when its tab becomes active (tabControl1.Selected), for both the Asset List and Asset Classes tabs.Verified