Fix Visual Script method override node auto-size

This commit is contained in:
Wojtek Figat
2021-06-14 14:30:54 +02:00
parent bbbcfb707d
commit 90105c421d

View File

@@ -605,8 +605,7 @@ namespace FlaxEditor.Surface.Archetypes
MakeBox(0, string.Empty, typeof(void), true); MakeBox(0, string.Empty, typeof(void), true);
} }
// Update size ResizeAuto();
Resize(Style.Current.FontLarge.MeasureText(Title).X + 30, 20 + (_parameters?.Length * 20 ?? 0));
} }
private void MakeBox(int id, string text, Type type, bool single = false) private void MakeBox(int id, string text, Type type, bool single = false)