Browse Source

fix scroll to last in another scenario when listbox is in more dynamic measure ex: in grid with multiple star rows

pull/2134/head
Andrey Kunchev 8 years ago
parent
commit
2c8efb9364
  1. 5
      src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

5
src/Avalonia.Controls/Presenters/ItemVirtualizerSimple.cs

@ -542,6 +542,11 @@ namespace Avalonia.Controls.Presenters
{
layoutManager.ExecuteLayoutPass();
if (newOffset != -1 && newOffset != OffsetValue)
{
OffsetValue = newOffset;
}
if (panel.ScrollDirection == Orientation.Vertical)
{
if (container.Bounds.Y < panel.Bounds.Y || container.Bounds.Bottom > panel.Bounds.Bottom)

Loading…
Cancel
Save