Bug 10321 - combo boxes truncate strings at word boundaries
Summary: combo boxes truncate strings at word boundaries
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: 2.10.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-02-15 12:54 UTC by Stephen McConnel
Modified: 2017-08-17 09:33 UTC (History)
3 users (show)

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


Attachments
TestStringDrawing.zip is a simple project that demonstrates the bug. (11.29 KB, application/zip)
2013-02-15 12:54 UTC, Stephen McConnel
Details
Fix-FWNX-861.patch is a proposed fix for the bug which appears to work okay in local testing. (790 bytes, patch)
2013-02-15 12:56 UTC, Stephen McConnel
Details
Windows-ComboBox.png shows the expected behavior (with Windows VS 2010). (33.55 KB, image/png)
2013-02-15 12:58 UTC, Stephen McConnel
Details
MonoBug-ComboBox.png shows the bug in action on Linux using Mono 2.10.x. (24.79 KB, image/png)
2013-02-15 13:00 UTC, Stephen McConnel
Details
MonoBugFixed-ComboBox.png shows the behavior on Linux after applying the proposed patch. (27.05 KB, image/png)
2013-02-15 13:01 UTC, Stephen McConnel
Details
Fix-Xamarin-10321.patch is a proposed fix for the bug. (714 bytes, patch)
2013-02-15 13:16 UTC, Stephen McConnel
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 Stephen McConnel 2013-02-15 12:54:29 UTC
Created attachment 3382 [details]
TestStringDrawing.zip is a simple project that demonstrates the bug.

The code for determining possible display breaks in a string drawing does not work properly for combo boxes (either ordinary WSF.ComboBox or WSF.ToolStripComboBox).  It truncates the line only between words, which can lead to misleading / inadequate displays on the screen.
Comment 1 Stephen McConnel 2013-02-15 12:56:24 UTC
Created attachment 3383 [details]
Fix-FWNX-861.patch is a proposed fix for the bug which appears to work okay in local testing.
Comment 2 Stephen McConnel 2013-02-15 12:58:51 UTC
Created attachment 3384 [details]
Windows-ComboBox.png shows the expected behavior (with Windows VS 2010).
Comment 3 Stephen McConnel 2013-02-15 13:00:02 UTC
Created attachment 3385 [details]
MonoBug-ComboBox.png shows the bug in action on Linux using Mono 2.10.x.
Comment 4 Stephen McConnel 2013-02-15 13:01:58 UTC
Created attachment 3386 [details]
MonoBugFixed-ComboBox.png shows the behavior on Linux after applying the proposed patch.
Comment 5 Stephen McConnel 2013-02-15 13:16:10 UTC
Created attachment 3387 [details]
Fix-Xamarin-10321.patch is a proposed fix for the bug.
Comment 6 eb1 2017-08-16 18:42:39 UTC
https://github.com/mono/mono/pull/5386 has a different proposed fix that fixes the problem in SWF instead of libgdiplus. This has the advantage that it'll work with both Cairo and Pango renderers.
Comment 7 Alexander Köplinger [MSFT] 2017-08-17 09:33:07 UTC
The PR was merged, thanks!