[SWF] Fix string drawing truncation in combo boxes
commit9cfadcb38fabe018c5c4ca06d2a87c1358469ee3
authorEberhard Beilharz <eb1@sil.org>
Wed, 16 Aug 2017 18:33:18 +0000 (16 12:33 -0600)
committerMarek Safar <marek.safar@gmail.com>
Thu, 17 Aug 2017 08:33:18 +0000 (17 10:33 +0200)
treea16ec1531484542cb0b420196826df3f10b250ce
parentaa7cd58fb8b84560bda480985475a90502e9bee3
[SWF] Fix string drawing truncation in combo boxes

This fixes Xamarin-10321. This change fixes the problem in SWF rather
than in libgdiplus which has the advantage that it works with both
Cairo and Pango renderers.

Without the additional NoWrap flag the text will wrap at a word boundary,
which results in the combo box showing lines with potentially a lot of
empty space at the end. With the NoWrap flag we render only one line,
displaying as many characters as possible in that one line.
mcs/class/System.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs