leozide / leocad

A CAD application for creating virtual LEGO models
https://www.leocad.org
2.47k stars 211 forks source link

Parts list scrolled to the bottom (with active Search Parts) #944

Open app4soft opened 1 week ago

app4soft commented 1 week ago

Describe the bug If there is an active "Search Parts" query, "Parts" list scrolls to the bottom every time swithching between categories.

Rarely, in same of the cases it acts as usual and scrolls to top, in some other it scrolls to the middle of the list.

To Reproduce Steps to reproduce the behavior:

  1. Add any word to "Search Parts" query on "Parts" list widget;
  2. Switch between categories;
  3. Try different queries (numeric, words, mixed)

Expected behavior If there is an active "Search Parts" query, "Parts" list should not scrolls to the bottom, and when switching categories it should be alwaysscrolls to the top of the list.

And allparts not matching query should be hiddent if there is active "Search Parts" query.

Screenshots

Screencast video

leocad-parts-list-scroll-with-search-parts.webm

Version (please complete the following information):

Crash information: None

Additional context None

nathaneltitane commented 1 day ago

@leozide thank you for fixing the search focus on widget popup - any chance this problem might be quick fix?