Modern.Forms
Modern.Forms copied to clipboard
Label Multiline is broken
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.