mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Fix height of popup (was covering click area of expanded type's properties)
This commit is contained in:
parent
db92528786
commit
d16355936e
@ -56,6 +56,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;
|
||||
|
||||
@ -75,7 +76,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user