Revert unintended removed line

This commit is contained in:
Adam Ramberg 2022-10-24 00:20:10 +02:00
parent d245f8b745
commit 6b42c488e8

View File

@ -59,6 +59,7 @@ namespace UnityAtoms.Editor
// Calculate rect for configuration button
Rect buttonRect = new Rect(position);
buttonRect.yMin += _popupStyle.margin.top;
buttonRect.yMax = buttonRect.yMin + EditorGUIUtility.singleLineHeight;
buttonRect.width = _popupStyle.fixedWidth + _popupStyle.margin.right;
position.xMin = buttonRect.xMax;
@ -73,7 +74,7 @@ namespace UnityAtoms.Editor
var usageTypePropertyName = GetUsages(property)[newUsageValue].PropertyName;
var usageTypeProperty = property.FindPropertyRelative(usageTypePropertyName);
if(usageTypeProperty == null)
if (usageTypeProperty == null)
{
EditorGUI.LabelField(position, "[Non serialized value]");
}
@ -84,7 +85,7 @@ namespace UnityAtoms.Editor
var valueFieldHeight = EditorGUI.GetPropertyHeight(usageTypeProperty, label);
usageTypeProperty.isExpanded = expanded;
if (usageTypePropertyName == "_value" && (valueFieldHeight > EditorGUIUtility.singleLineHeight+2))
if (usageTypePropertyName == "_value" && (valueFieldHeight > EditorGUIUtility.singleLineHeight + 2))
{
EditorGUI.PropertyField(originalPosition, usageTypeProperty, GUIContent.none, true);
}