Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK and WinForms Label with WrapMode.None should not enable SingleLineMode #2326

Closed
LeeARichardson opened this issue Sep 29, 2022 · 1 comment
Labels
Milestone

Comments

@LeeARichardson
Copy link

LeeARichardson commented Sep 29, 2022

Hi,
On GTK and WinForms, but not WPF (I can't check Mac) setting a Label to WrapMode.None also enables single line mode. There's no way to disable wrap but still allow multiple lines.
This is in contradiction to the documentation which states "Regardless of the mode, you can always add hard wraps by inserting newline characters."

/// Regardless of the mode, you can always add hard wraps by inserting newline characters.

Control.SingleLineMode = true;

textFormat |= swf.TextFormatFlags.SingleLine;

Expected Behavior

Label with WrapMode.None should not restrict the text to a single line.

Actual Behavior

Text with new lines is all shown on the same line due to the SingleLineMode being enabled.

Steps to Reproduce the Problem

  1. Set a Label's Wrap to WrapMode.None .

Code that Demonstrates the Problem

let label = new Label()
label.Wrap <- WrapMode.None

Specifications

  • Version: 2.7.1
  • Platform(s): Gtk3, WinForms
  • Operating System(s): Windows 10, Linux
@cwensley
Copy link
Member

Fixed with #2327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants