Skip to content

GTK4 tags sidebar listview scrolls up to position 0 when deleting or moving a tag #1252

@nekohayo

Description

@nekohayo

With the git master version / 0.7, if you have enough tags in the sidebar to make it scrollable, scroll to the middle and either:

  • Delete one of the tags, or;
  • Move one of the tags into another tag, so that it becomes a child of that tag

Result: the sidebar scrolls completely to the top, instead of maintaining its position.

I'm not sure what is the best way to fight off this behavior from GTK4's scrolled listview widget. Would focusing the correct item, or using the scroll_to method from that widget, be the solution?

  • When a tag is moved, scroll to its new position?
  • When a tag is deleted, scroll to the position of the tag just above it?
    That way, if you were already scrolled all the way to the bottom for example, you would remain scrolled to the bottom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglow-hanging-fruit"Easy picks" suitable for new contributors to tacklepriority:lowregressionEssential features that recently brokereproducible-in-gitIssues that affect the current dev version

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions