Modern.Forms icon indicating copy to clipboard operation
Modern.Forms copied to clipboard

Label Multiline is broken

Open JADERLINK opened this issue 1 month ago • 0 comments

Label Multiline is broken

The error is present starting from commit: https://github.com/modern-forms/Modern.Forms/commit/08f5eebce71a2463f0754651dad14d5a2824cc9c

In file: "src/Modern.Forms/Renderers/LabelRenderer.cs" changed the line of:

e.Canvas.DrawText (control.Text, text_bounds, control, control.TextAlign, maxLines: control.Multiline ? (int?)null : 1, ellipsis: control.AutoEllipsis);

To:

e.Canvas.DrawText (control.Text, layout.TextBounds, control, control.TextAlign, maxLines: 1, ellipsis: control.AutoEllipsis);

From this point on, the label will only display text on a single line, and the "Multiline" property will no longer function.

Please correct the error or remove the "Multiline" property.

JADERLINK avatar Nov 23 '25 14:11 JADERLINK