Convert Control to ContainerControl.

This commit is contained in:
Jean-Baptiste Perrier
2021-03-17 20:53:42 +01:00
parent fb70368c8d
commit c8b57d417c
7 changed files with 13 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Border control that draws the border around the control edges (inner and outer sides).
/// </summary>
public class Border : Control
public class Border : ContainerControl
{
/// <summary>
/// Gets or sets the color used to draw border lines.
@@ -30,9 +30,9 @@ namespace FlaxEngine.GUI
}
/// <inheritdoc />
public override void Draw()
public override void DrawSelf()
{
base.Draw();
base.DrawSelf();
Render2D.DrawRectangle(new Rectangle(Vector2.Zero, Size), BorderColor, BorderWidth);
}