[Mono-bugs] [Bug 417876] ListView.CacheVirtualItems event is broken

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Aug 20 19:08:17 EDT 2008


User calberto.cortez at gmail.com added comment

Carlos Alberto Cortez <calberto.cortez at gmail.com> changed:

           What    |Removed                                         |Added
             Status|ASSIGNED                                        |RESOLVED
         Resolution|                                                |FIXED

--- Comment #1 from Carlos Alberto Cortez <calberto.cortez at gmail.com>  2008-08-20 17:08:17 MDT ---
Fixed in svn - this was a stupid mistake, but here is the explanation (and that
should help you too).

Basically this is one the virtual-mode related events that is actually broken.
The first thing is that, based on my observations, is that this event is called
only after it is going to draw a speficic range of items - but usually you need
to provide them *before* that for layout calculation purposes.

Second, usually the range is somewhat wrong - for example, if you select an
item only by moving the left or right keys, it will generate 3
CacheVirtualItems, and one of those calls will include, as a range, ALL the
visible items.

That's why we only pass the range of visible items always, but hopefully, not
as many times as that event is fired in .net ;-)

So that's why (event broken) why didn't notice before this mistake.

Anyway, use it at your own risk!


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list