Author: fherrera
Date: 2008-01-17 10:22:21 -0500 (Thu, 17 Jan 2008)
New Revision: 93163

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/panel.cpp
Log:
2008-01-17  Fernando Herrera  <[EMAIL PROTECTED]>

        * panel.cpp: Reorder based on ZIndex when a new item is added.
        Fixes bug #353954




Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-01-17 15:16:39 UTC (rev 93162)
+++ trunk/moon/src/ChangeLog    2008-01-17 15:22:21 UTC (rev 93163)
@@ -1,3 +1,8 @@
+2008-01-17  Fernando Herrera  <[EMAIL PROTECTED]>
+
+       * panel.cpp: Reorder based on ZIndex when a new item is added.
+       Fixes bug #353954
+
 2008-01-17  Larry Ewing  <[EMAIL PROTECTED]>
 
        * runtime.cpp (Surface::InitializeDrawingArea): disable extended

Modified: trunk/moon/src/panel.cpp
===================================================================
--- trunk/moon/src/panel.cpp    2008-01-17 15:16:39 UTC (rev 93162)
+++ trunk/moon/src/panel.cpp    2008-01-17 15:22:21 UTC (rev 93163)
@@ -480,6 +480,7 @@
        switch (type) {
        case CollectionChangeTypeItemAdded:
                // we could do some optimization here
+               GetChildren()->ResortByZIndex ();
        case CollectionChangeTypeItemRemoved:
        case CollectionChangeTypeChanged:
                UpdateBounds (true);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to