|
|
@ -295,11 +295,14 @@ namespace Avalonia.Controls.Presenters |
|
|
/// <inheritdoc/>
|
|
|
/// <inheritdoc/>
|
|
|
public override void ScrollIntoView(object item) |
|
|
public override void ScrollIntoView(object item) |
|
|
{ |
|
|
{ |
|
|
var index = Items.IndexOf(item); |
|
|
if(Items != null) |
|
|
|
|
|
|
|
|
if (index != -1) |
|
|
|
|
|
{ |
|
|
{ |
|
|
ScrollIntoView(index); |
|
|
var index = Items.IndexOf(item); |
|
|
|
|
|
|
|
|
|
|
|
if (index != -1) |
|
|
|
|
|
{ |
|
|
|
|
|
ScrollIntoView(index); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|