Incorrect indent for ValueDropdown with AppendNextDrawer=true

Issue #821 new
kris rok created an issue

When a property with ValueDropdown is indented and you set AppendNextDrawer=true, the indent for the next drawer (in this case the string input field) is incorrectly calculated:

public class AppendNextDrawerIndentIssue : MonoBehaviour
{
    [Serializable]
    public class Subclass
    {
        [ValueDropdown(nameof(_strings), AppendNextDrawer = true)]
        public string String;

        private string[] _strings = new[] { "a", "b", "C" };
    }

    public Subclass Sub;

    [ValueDropdown(nameof(_strings), AppendNextDrawer = true)]
    public string String;

    private string[] _strings = new[] { "a", "b", "C" };
}

Comments (1)

  1. Log in to comment