diff --git a/Source/Editor/Surface/Elements/InputBox.cs b/Source/Editor/Surface/Elements/InputBox.cs index 5a9f33704..2047bcd1a 100644 --- a/Source/Editor/Surface/Elements/InputBox.cs +++ b/Source/Editor/Surface/Elements/InputBox.cs @@ -1652,35 +1652,5 @@ namespace FlaxEditor.Surface.Elements } } } - - /// - /// Get the size of the value editor for this box. - /// - /// The size of the value editor for this box. - public Float2 GetValueEditorSize() - { - if (!HasValue) - return Float2.Zero; - - if (_defaultValueEditor != null) - return _defaultValueEditor.Bounds.Size; - - for (int i = 0; i < DefaultValueEditors.Count; i++) - { - if (DefaultValueEditors[i].CanUse(this, ref _currentType)) - { - var bounds = new Rectangle(X + Width + 8 + Style.Current.FontSmall.MeasureText(Text).X, Y, 90, Height); - _editor = DefaultValueEditors[i]; - - // TODO: Find a better way to evaluate the size than using existing create code to resolve the size for each editor type. - var tempEditor = _editor.Create(this, ref bounds); - Float2 editorSize = tempEditor.Size; - tempEditor.Dispose(); - return editorSize; - } - } - - return Float2.Zero; - } } }