https://bugzilla.novell.com/show_bug.cgi?id=353954

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=353954#c2


Fernando Herrera <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]




--- Comment #2 from Fernando Herrera <[EMAIL PROTECTED]>  2008-01-16 12:13:57 
MST ---
Elements are not reordered after insertions, so we can either do:

--- src/panel.cpp       (revision 93067)
+++ src/panel.cpp       (working copy)
@@ -524,6 +524,7 @@
        switch (type) {
        case CollectionChangeTypeItemAdded:
                // we could do some optimization here
+                GetChildren()->ResortByZIndex ();
        case CollectionChangeTypeItemRemoved:
        case CollectionChangeTypeChanged:
                UpdateBounds (true);



or <toshok>checking the zindex values of the element before/after the newly
inserted one, but if we're scanning the list on each insertion we might as well
sort</toshok>


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to