修复表格编辑器的问题

This commit is contained in:
2026-07-01 16:11:46 +08:00
parent 40fbfed45c
commit 8f4b13bfea
2 changed files with 5 additions and 1 deletions
@@ -857,7 +857,8 @@ namespace XericUI.XTable.Rendering.Component
m_BackgroundGo = new GameObject("_TableBackground",
typeof(RectTransform), typeof(CanvasRenderer), typeof(Image));
m_BackgroundGo.hideFlags = HideFlags.DontSave | HideFlags.HideInHierarchy;
m_BackgroundGo.transform.SetParent(rectTransform, false);
m_BackgroundGo.transform.SetParent(ContentTransform, false);
m_BackgroundGo.transform.SetAsFirstSibling();
RectTransform bgRt = m_BackgroundGo.GetComponent<RectTransform>();
bgRt.anchorMin = new Vector2(0, 1);