Skip to content

Commit 8dd68e6

Browse files
Fixed developer description not wrapping
1 parent 470d83c commit 8dd68e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/SO Architecture/Editor/Drawers/DeveloperDescriptionDrawer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void DrawTextArea(ref Rect rect, SerializedProperty property)
3434
if (!HasContent(property))
3535
rect.y += EditorGUIUtility.singleLineHeight;
3636

37-
rect.height = Styles.TextAreaStyle.CalcSize(new GUIContent(stringValue.stringValue)).y;
37+
rect.height = GetHeight(property);
3838

3939
EditorGUI.indentLevel++;
4040
stringValue.stringValue = EditorGUI.TextArea(rect, stringValue.stringValue, Styles.TextAreaStyle);
@@ -88,7 +88,7 @@ private static float GetHeight(SerializedProperty property)
8888
}
8989
else
9090
{
91-
return Styles.TextAreaStyle.CalcSize(new GUIContent(content)).y;
91+
return Styles.TextAreaStyle.CalcHeight(new GUIContent(content), Screen.width);
9292
}
9393
}
9494
private static class Styles

0 commit comments

Comments
 (0)