Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing sort order makes listview scroll at random position. #178

Open
1 task done
RocketRide9 opened this issue Mar 3, 2024 · 2 comments
Open
1 task done

Changing sort order makes listview scroll at random position. #178

RocketRide9 opened this issue Mar 3, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@RocketRide9
Copy link

Is there an existing issue for this?

  • I searched the existing issues and did not find anything similar.

Current Behavior

Changing sort order in Processes or Apps tabs makes listview scroll at random position.

Expected Behavior

After changing sort order listview should be scroll at the begining.

Steps To Reproduce

  1. Go to processes tab
  2. Change ID sort order
  3. See that listview was scrolled to the end

Environment

Resources 1.3.0 from flathub
f39

Anything else?

Screencast:
https://github.com/nokyan/resources/assets/70429241/7999d0e4-d145-480a-a4bc-8e0820c5dc80

@RocketRide9 RocketRide9 added the bug Something isn't working label Mar 3, 2024
@nokyan
Copy link
Owner

nokyan commented Mar 6, 2024

Hi,
I'm using GTK's fuctions for changing the sort order. Atleast in my testing, it's not quite random, it tries to keep the selected item (or the topmost item if no item is selected) at the same window-relative position.

@RocketRide9
Copy link
Author

hm, indeed, i didn't notice it. but i don't see a use case for such behavior. in my opinion the purpose of sorting is to see top elements. In case of Resources, to see processes that are using the most cpu, memory, bandwidth etc. that's why scrolling to the top after changing sort order looks like a better idea to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants