diff --git a/Source/Editor/Surface/Archetypes/Math.cs b/Source/Editor/Surface/Archetypes/Math.cs index 7416ea498..80b3e8127 100644 --- a/Source/Editor/Surface/Archetypes/Math.cs +++ b/Source/Editor/Surface/Archetypes/Math.cs @@ -244,7 +244,7 @@ namespace FlaxEditor.Surface.Archetypes Title = "Mad", Description = "Performs value multiplication and addition at once", Flags = NodeFlags.AllGraphs, - Size = new Vector2(110, 60), + Size = new Vector2(160, 60), ConnectionsHints = ConnectionsHint.Numeric, IndependentBoxes = new[] { diff --git a/Source/Engine/UI/GUI/Control.Bounds.cs b/Source/Engine/UI/GUI/Control.Bounds.cs index 7139a2e05..1fe4117f8 100644 --- a/Source/Engine/UI/GUI/Control.Bounds.cs +++ b/Source/Engine/UI/GUI/Control.Bounds.cs @@ -169,8 +169,8 @@ namespace FlaxEngine.GUI [NoSerialize, HideInEditor] public float Width { - get => _bounds.Width; - set => Bounds = new Rectangle(_bounds.Location, value, _bounds.Height); + get => _bounds.Size.X; + set => Bounds = new Rectangle(_bounds.Location, value, _bounds.Size.Y); } /// @@ -179,8 +179,8 @@ namespace FlaxEngine.GUI [NoSerialize, HideInEditor] public float Height { - get => _bounds.Height; - set => Bounds = new Rectangle(_bounds.Location, _bounds.Width, value); + get => _bounds.Size.Y; + set => Bounds = new Rectangle(_bounds.Location, _bounds.Size.X, value); } /// diff --git a/Source/Engine/UI/GUI/Panels/SplitPanel.cs b/Source/Engine/UI/GUI/Panels/SplitPanel.cs index 841d6ff55..4a642dc9a 100644 --- a/Source/Engine/UI/GUI/Panels/SplitPanel.cs +++ b/Source/Engine/UI/GUI/Panels/SplitPanel.cs @@ -169,9 +169,6 @@ namespace FlaxEngine.GUI /// public override bool OnMouseDown(Vector2 location, MouseButton button) { - if (base.OnMouseDown(location, button)) - return true; - if (button == MouseButton.Left && _splitterRect.Contains(location)) { // Start moving splitter @@ -179,21 +176,20 @@ namespace FlaxEngine.GUI Focus(); return false; } - return false; + + return base.OnMouseDown(location, button); } /// public override bool OnMouseUp(Vector2 location, MouseButton button) { - if (base.OnMouseUp(location, button)) - return true; - if (_splitterClicked) { EndTracking(); return true; } - return false; + + return base.OnMouseUp(location, button); } ///