浏览代码

Marked todo related to child priority sorting.

Lasse Öörni 10 年之前
父节点
当前提交
e9cf66b992
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Source/Urho3D/UI/UIElement.cpp

+ 1 - 0
Source/Urho3D/UI/UIElement.cpp

@@ -1626,6 +1626,7 @@ void UIElement::SortChildren()
     if (sortChildren_ && sortOrderDirty_)
     if (sortChildren_ && sortOrderDirty_)
     {
     {
         // Only sort when there is no layout
         // Only sort when there is no layout
+        /// \todo Order is not stable when children have same priorities
         if (layoutMode_ == LM_FREE)
         if (layoutMode_ == LM_FREE)
             Sort(children_.Begin(), children_.End(), CompareUIElements);
             Sort(children_.Begin(), children_.End(), CompareUIElements);
         sortOrderDirty_ = false;
         sortOrderDirty_ = false;