Skip to content

Commit 2b8e9a9

Browse files
committed
fix
1 parent ffd13fd commit 2b8e9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GameFramework/Editor/UI/InfiniteListViewEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private static void CreateInfiniteListView(MenuCommand menuCommand)
2929
GameObject parent = menuCommand.context as GameObject;
3030
if (parent != null)
3131
{
32-
if (parent.GetComponent<Canvas>() == null)
32+
if (parent.GetComponentInParent<Canvas>() == null)
3333
parent = null;
3434
}
3535
if (parent == null)

0 commit comments

Comments
 (0)