You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AvaloniaUI version 11.0.9 / TreeDataGrid version 11.0.2
Description
When a TreeDataGrid control has a TextColumn with the TextWrapping option set to TextWrapping.Wrap (or to TextWrapping.WrapWithOverflow), scrolling the control using the keyboard causes a visual clatter when scrolling passes through rows with wrapped text.
Tested in Windows and MacOS.
Steps to reproduce
Create an empty AvaloniaUI project with TreeDataGrid control.
Set the TextWrapping option of any text column to TextWrapping.Wrap
Fill in the control by 100-1,000 rows or variable length.
Run the app, and adjust the column width to ensure that at least one row is wrapped (the more the better).
Scroll the control down by pressing and holding the Down Arrow on the keyboard.
Notice that scrolling slows down on rows with wrapped text (they have larger height)
You will see the visual clatter as in the video below. Otherwise, change the scrolling direction by pressing and holding the Up key.
The demo app contains two TreeDataGrid controls displaying the same data.
On the left control, the text column has the TextWrapping option set to TextWrapping.NoWrap. The bug isn't reproducible.
On the right control, the text column has the TextWrapping option set to TextWrapping.Wrap. Some rows have a Height of 2× than others. The bug is reproducible.
Video illustrating the bug in action:
Avalonia.TreeDataGrid.VariableRowHeight.Bug.mp4
The text was updated successfully, but these errors were encountered:
AvaloniaUI
version 11.0.9 /TreeDataGrid
version 11.0.2Description
When a
TreeDataGrid
control has aTextColumn
with theTextWrapping
option set toTextWrapping.Wrap
(or to TextWrapping.WrapWithOverflow), scrolling the control using the keyboard causes a visual clatter when scrolling passes through rows with wrapped text.Tested in Windows and MacOS.
Steps to reproduce
AvaloniaUI
project withTreeDataGrid
control.TextWrapping
option of any text column toTextWrapping.Wrap
Demo app
The sample app that recreates the bug: https://github.com/windracer/Avalonia.Controls.TreeDataGrid.VariableRowHeight.Bug
The demo app contains two
TreeDataGrid
controls displaying the same data.On the left control, the text column has the
TextWrapping
option set toTextWrapping.NoWrap
. The bug isn't reproducible.On the right control, the text column has the
TextWrapping
option set toTextWrapping.Wrap
. Some rows have a Height of 2× than others. The bug is reproducible.Video illustrating the bug in action:
Avalonia.TreeDataGrid.VariableRowHeight.Bug.mp4
The text was updated successfully, but these errors were encountered: