fix: Do not double fetch root parent (#1333)
This commit is contained in:
parent
9bb0dbf1ac
commit
14ef1ab7e5
1 changed files with 4 additions and 2 deletions
|
|
@ -1057,9 +1057,11 @@ public sealed class Map : IComparable<Map>, ISpanFormattable, ISpanParsable<Map>
|
|||
}
|
||||
else if (o is Item item)
|
||||
{
|
||||
if (item.RootParent != null)
|
||||
// Calculate the height based on the container, not the item inside.
|
||||
var rootParent = item.RootParent;
|
||||
if (rootParent != null)
|
||||
{
|
||||
p = GetPoint(item.RootParent, eye);
|
||||
p = GetPoint(rootParent, eye);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue