Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

[TreeDataGrid] Can't select the bottom row #370

Open

Description

@clintsinger

Describe the bug

When the horizontal scrollbar is visible the bottom row of the TreeDataGrid isn't selectable.

Image

To Reproduce

  1. Create TreeDataGrid and add enough data to show scrollbars
  2. Click on the last row
  3. Observe that the horizontal scrollbar blocks selecting the last row
  4. Modify data / UI so that the horizontal scrollbar disappears
  5. Observe that you can select the bottom row

Expected behavior

You should be able to select the bottom row even if the scrollbar is visible.

Avalonia version

Avalonia: 11.3.0, Avalonia.Controls.TreeDataGrid: 11.1.1

OS

No response

Additional context

No response

Activity

  1. added
    bug
    on May 30, 2025
  2. maxkatz6 commented on May 30, 2025

    @maxkatz6
    Member

    TreeDataGrid might need to enforce padding, when scrollbar is auto hiding.
    You also should be able to set padding there as a workaround.

  3. clintsinger commented on May 30, 2025

    @clintsinger
    Author

    This issue is similar to #371 in that if you don't have the theme installed then the hit testing for the row doesn't work correctly.

    It would be great if it could still work without the theme. Also a bit more bottom padding would be good by default because the scrollbar and and the bottom row fight for the same space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions