Fixed FlexItemInfo CompareTo method in order to fix the order of the items in the FlexPanel
This commit is contained in:
1 parent
c209cb4df4
commit
910b940b06
1 file changed
+6
-1
@@ -648,7 +648,12 @@ namespace HandyControl.Controls
|
|||||||
|
|
||||||
public int Index { get; }
|
public int Index { get; }
|
||||||
|
|
||||||
public int CompareTo(FlexItemInfo other) => Order.CompareTo(other.Order);
|
public int CompareTo(FlexItemInfo other)
|
||||||
|
{
|
||||||
|
var orderCompare = Order.CompareTo(other.Order);
|
||||||
|
if (orderCompare != 0) return orderCompare;
|
||||||
|
return Index.CompareTo(other.Index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private struct FlexLineInfo
|
private struct FlexLineInfo
|
||||||
|
|||||||
Reference in new issue
Block a user