Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Selinux24 committed Oct 30, 2024
1 parent e280e8b commit 27e9c86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Engine/BuiltIn/UI/UITextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ private async Task<Sprite> CreateBackground()
}
private async Task<UITextArea> CreateText()
{
var textArea = await Scene.CreateComponent<UITextArea, UITextAreaDescription>(
var textAreaComponent = await Scene.CreateComponent<UITextArea, UITextAreaDescription>(
$"{Id}.Text",
$"{Name}.Text",
Description);

textArea.EventsEnabled = true;
textArea.GrowControlWithText = false;
textAreaComponent.EventsEnabled = true;
textAreaComponent.GrowControlWithText = false;

return textArea;
return textAreaComponent;
}

/// <inheritdoc/>
Expand Down

0 comments on commit 27e9c86

Please sign in to comment.