[Mono-bugs] [Bug 353954] Wrong Z-Order
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 16 14:13:57 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=353954
User fherrera at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=353954#c2
Fernando Herrera <fherrera at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fherrera at novell.com
--- Comment #2 from Fernando Herrera <fherrera at novell.com> 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.
More information about the mono-bugs
mailing list