From 90105c421d19727dcd7ebc32ff9f1fe4f5f2ca92 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 14 Jun 2021 14:30:54 +0200 Subject: [PATCH] Fix Visual Script method override node auto-size --- Source/Editor/Surface/Archetypes/Function.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Editor/Surface/Archetypes/Function.cs b/Source/Editor/Surface/Archetypes/Function.cs index 4e017248a..141028081 100644 --- a/Source/Editor/Surface/Archetypes/Function.cs +++ b/Source/Editor/Surface/Archetypes/Function.cs @@ -605,8 +605,7 @@ namespace FlaxEditor.Surface.Archetypes MakeBox(0, string.Empty, typeof(void), true); } - // Update size - Resize(Style.Current.FontLarge.MeasureText(Title).X + 30, 20 + (_parameters?.Length * 20 ?? 0)); + ResizeAuto(); } private void MakeBox(int id, string text, Type type, bool single = false)