Skip to content

Organize Category dialog does not scroll newly added items into view  #5056

@tactilis

Description

@tactilis

MMEX version:

  • 1.5.20

Operating System:

  • Windows
  • Mac OSX
  • Linux

Description of the bug

The work done for #4989 has improved the Organize Categories dialog so that the category tree collapsed/expanded state is now remembered when it refreshes following the addition of a category/subcategory.

However the tree still scrolls to the top and highlights the root node (Categories) when the new item is added. The user then has to scroll to view the new item to check that it was entered OK, and perhaps to enter more subcategories within the category.

It would be more helpful if:

  1. The list is refreshed and scrolled to always show the new item.
  2. The new item is highlighted so that it can be easily identified.

Reproduction

Is the bug reproducible?

  • Always
  • Randomly
  • Happened only once

Reproduction steps:

Add a new subcategory to a category near the bottom of the tree:

image

Expected result:

The new item is visible and is highlighted:

image

Actual result:

The list is displayed with the root node highlighted.

image

Additional information

Note that when an item is deleted, the tree does not scroll and the item that was immediately above the deleted item is highlighted. This makes it easy for the user to see the change they have made, and perhaps to delete more subcategories within the category. This behaviour should be retained.

Metadata

Metadata

Assignees

Labels

bugfixedwinrelated to Windows pltform

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions