diff --git a/UICatalog/Scenarios/ListViewWithSelection.cs b/UICatalog/Scenarios/ListViewWithSelection.cs index e90080cb8..4013c0bab 100644 --- a/UICatalog/Scenarios/ListViewWithSelection.cs +++ b/UICatalog/Scenarios/ListViewWithSelection.cs @@ -80,7 +80,9 @@ public class ListViewWithSelection : Scenario Width = Dim.Func (() => _listView?.MaxLength ?? 10), Height = Dim.Fill (), AllowsMarking = false, - AllowsMultipleSelection = false + AllowsMultipleSelection = false, + BorderStyle = LineStyle.Dotted, + Arrangement = ViewArrangement.Resizable }; _listView.RowRender += ListView_RowRender; _appWindow.Add (_listView); @@ -106,6 +108,7 @@ public class ListViewWithSelection : Scenario _listView.Accepting += (s, a) => LogEvent (s as View, a, "Accept"); _listView.Selecting += (s, a) => LogEvent (s as View, a, "Select"); _listView.VerticalScrollBar.AutoShow = true; + _listView.HorizontalScrollBar.AutoShow = true; bool? LogEvent (View sender, EventArgs args, string message) { diff --git a/UnitTests/Views/ListViewTests.cs b/UnitTests/Views/ListViewTests.cs index 5ed060f34..add91a9a0 100644 --- a/UnitTests/Views/ListViewTests.cs +++ b/UnitTests/Views/ListViewTests.cs @@ -790,10 +790,10 @@ Item 6", var lv = new ListView { X = 1, - Width = 10, - Height = 5, Source = new ListWrapper (source) }; + lv.Height = lv.Source.Count; + lv.Width = lv.MaxLength; var top = new Toplevel (); top.Add (lv); Application.Begin (top);