[MWF] Fix problem when button text overlaps image
authorEberhard Beilharz <eb1@sil.org>
Fri, 5 Dec 2014 16:35:35 +0000 (17:35 +0100)
committerEberhard Beilharz <eb1@sil.org>
Fri, 5 Dec 2014 16:35:35 +0000 (17:35 +0100)
commit3ae08e65b87072498343a53b91a0f61f578dc0d0
tree8ed327c26b925a4ae52cf1027ca46d64fbc910d5
parent2c6eb4f9b713203bde5cb5a6ea54d73a22141906
[MWF] Fix problem when button text overlaps image

When we draw a button with ImageAboveText.ImageAboveText and the
text is too big to fit below the image we have to draw the text over
the image. This should happen from the bottom, not from the top as
the previous implementation did. With the previous code we ended up
having the text at the top of the button under certain conditions.
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs