Skip to content

Commit 331e4d8

Browse files
committed
fix(multilineinput): fix y offset with empty last line (when return line)
1 parent abc6209 commit 331e4d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SharpEngine.Core/Widget/MultiLineInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public override void Draw()
9090

9191
var lines = Text.Split("\n");
9292
var offsetX = textSize.X - (Size.X - 20);
93-
var offsetY = textSize.Y * lines.Length - (Size.Y - 8);
93+
var offsetY = realTextSize.Y * lines.Length - (Size.Y - 8);
9494

9595
SERender.ScissorMode(
9696
(int)finalPosition.X,

0 commit comments

Comments
 (0)