Bug 33183 - Unexpected behavior can occur when horizontal or vertical scrollbar value changes in TreeView
Summary: Unexpected behavior can occur when horizontal or vertical scrollbar value cha...
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: Community
Assignee: Bugzilla
Depends on:
Reported: 2015-08-18 01:20 UTC by daspits
Modified: 2017-09-01 12:16 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description daspits 2015-08-18 01:20:05 UTC
When the horizontal or vertical scrollbar value is changed in TreeView, the EndEdit() method is always called even if not currently editing a node. EndEdit() always calls Application.DoEvents() which can cause strange behavior in some cases. It seems that the Application.DoEvents() call is necessary to deal with a focus issue when editing a label, which is not happening in this case. The proposed solution would be to only call EndEdit() in the VScrollBarValueChanged() or HScrollBarValueChanged() methods if the edit_node variable is not null.
Comment 1 eb1 2016-01-29 22:03:48 UTC
Suggested fix in https://github.com/mono/mono/pull/2547