Bug 23168 - Button text gets truncated instead of wrapped
Summary: Button text gets truncated instead of wrapped
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-09-18 17:54 UTC by eb1
Modified: 2014-10-16 05:46 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample program that demonstrates the problem (2.46 KB, application/zip)
2014-10-06 09:49 UTC, eb1
Details
Sample program that demonstrates the problem (2.17 KB, application/x-bzip)
2014-10-07 11:33 UTC, eb1
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description eb1 2014-09-18 17:54:10 UTC
Under certain circumstances the button text gets truncated instead of wrapped. If it is a few characters shorter or longer it wraps as expected.

The attached sample program demonstrates the problem: Run the application, type "Button text is w". Notice how the button only shows "Button text is". Now type "Button text is wr". Notice how the "wr" shows and is wrapped to the next line.
Comment 1 eb1 2014-10-06 09:49:41 UTC
Created attachment 8316 [details]
Sample program that demonstrates the problem
Comment 2 eb1 2014-10-07 11:33:53 UTC
Created attachment 8340 [details]
Sample program that demonstrates the problem

When running the sample program you can type some text which will show up as button text. Notice that with the default text ("This is some te") the "te" is missing (at least on the machines I tried; it might depend on the resolution or fonts. If that's the case try and type or delete some characters). If you delete or add a character the full text will show again.
Comment 3 eb1 2014-10-07 11:42:19 UTC
Suggested fix in PR #1327
Comment 4 eb1 2014-10-16 05:46:50 UTC
Fixed in c677be4 on master