Skip to content

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

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

Open
clintsinger opened this issue May 30, 2025 · 2 comments
Open

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

clintsinger opened this issue May 30, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@clintsinger
Copy link

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

@clintsinger clintsinger added the bug Something isn't working label May 30, 2025
@maxkatz6
Copy link
Member

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

@maxkatz6 maxkatz6 transferred this issue from AvaloniaUI/Avalonia May 30, 2025
@clintsinger
Copy link
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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants