[Mono-dev] Review of PR #1407 - [MWF] Fix focus issue when removing last item in ListView

Eberhard Beilharz eb1 at sil.org
Wed Nov 19 20:28:16 UTC 2014




-------- Forwarded Message --------
Subject: 	Fwd: Review of PR #1407 - [MWF] Fix focus issue when removing
last item in ListView
Date: 	Wed, 19 Nov 2014 14:23:57 -0500



Can you send this message to the mono-devel-list?  Mine hasn't been
moderated yet.  Maybe if you send it, then it will get reviewed.

Chris


-------- Forwarded Message --------
Subject: 	Review of PR #1407 - [MWF] Fix focus issue when removing last
item in ListView
Date: 	Tue, 18 Nov 2014 09:28:55 -0500
From: 	Chris Hubbard <chris_hubbard at sil.org>
To: 	mono-devel-list at lists.ximian.com



Hello,

We found an issue while testing a form that uses
System.Windows.Forms.ListView.

If the last item in a ListView has focus and it is removed by
an another action on the form (i.e. push a button to remove the
current item), then the focused_item_index is not updated when
the VirtualListSize changes, even though that item doesn't exist
anymore. When the ListView receives focus again, it tries to
invalidate the current focused item which causes an
ArgumentOutOfRangeException.

When the VirtualListSize changes, the focus_item_index should
be reset (similar to how it currently resets the selected indices).

https://github.com/mono/mono/pull/1407

Thanks,

Chris Hubbard





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20141119/06bdfb6e/attachment.html>


More information about the Mono-devel-list mailing list