优化GridCoord在开启GridLayout时也显示Left Right Top Bottom参数 (#316)

This commit is contained in:
monitor1394
2024-04-15 08:18:12 +08:00
parent 3ef2e7c23c
commit 58e6108bb2
2 changed files with 6 additions and 7 deletions

View File

@@ -11,13 +11,10 @@ namespace XCharts.Editor
++EditorGUI.indentLevel;
var layoutIndex = baseProperty.FindPropertyRelative("m_LayoutIndex").intValue;
PropertyField("m_LayoutIndex");
if (layoutIndex < 0)
{
PropertyField("m_Left");
PropertyField("m_Right");
PropertyField("m_Top");
PropertyField("m_Bottom");
}
PropertyField("m_Left");
PropertyField("m_Right");
PropertyField("m_Top");
PropertyField("m_Bottom");
PropertyField("m_BackgroundColor");
PropertyField("m_ShowBorder");
PropertyField("m_BorderWidth");