From 58e6108bb27b7faa72e9a9c1cbfbebcadcbf7eb1 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 15 Apr 2024 08:18:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96`GridCoord`=E5=9C=A8=E5=BC=80?= =?UTF-8?q?=E5=90=AF`GridLayout`=E6=97=B6=E4=B9=9F=E6=98=BE=E7=A4=BA`Left`?= =?UTF-8?q?=20`Right`=20`Top`=20`Bottom`=E5=8F=82=E6=95=B0=20(#316)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Documentation~/zh/changelog.md | 2 ++ Editor/MainComponents/GridCoordEditor.cs | 11 ++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Documentation~/zh/changelog.md b/Documentation~/zh/changelog.md index b5d5aca2..7000dd0e 100644 --- a/Documentation~/zh/changelog.md +++ b/Documentation~/zh/changelog.md @@ -73,6 +73,8 @@ slug: /changelog ## master +* (2024.04.15) 优化`GridCoord`在开启`GridLayout`时也显示`Left` `Right` `Top` `Bottom`参数 (#316) +* (2024.04.14) 修复`Tooltip`的`Cross`在开启`DataZoom`的情况下`label`位置不正确的问题 (#315) * (2024.04.12) 修复`Candlesticks`效果不对的问题 (#313) * (2024.03.20) 增加`Tooltip`的`triggerOn`设置触发条件 * (2024.03.19) 修复`Pie`在设置`ItemStyle`的`opacity`时颜色不对的问题 (#309) diff --git a/Editor/MainComponents/GridCoordEditor.cs b/Editor/MainComponents/GridCoordEditor.cs index cc39f58b..adb60fd6 100644 --- a/Editor/MainComponents/GridCoordEditor.cs +++ b/Editor/MainComponents/GridCoordEditor.cs @@ -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");