summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-05-01 16:44:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-05-01 16:47:40 +0100
commit7d6f4391deb85012c4ede0bb5f35b1d6f347bc0f (patch)
treef8230013cc518decb8d63256bf66bab79e9c08d0
parent1bdf1122a9860a460ba6275d747d8baeedcfe1d1 (diff)
Resoves: fdo#31849 ensure more button text remains vertically centered
Is seems very bizarre that in Button::ImplDrawAlignedImage if there is no image, that we still add padding for the image separator to the text position. Why we have the concept of an Image *and* a Symbol escapes me. Anyway, setting the "Image" align to the right to match the "Symbol" align stops the button text getting displaced downwards. Change-Id: I67b80b2ff5cc960f5394cb7d69cab7a4c14513bf
-rw-r--r--vcl/source/control/morebtn.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/control/morebtn.cxx b/vcl/source/control/morebtn.cxx
index 0debd4cd6238..5d6129243a45 100644
--- a/vcl/source/control/morebtn.cxx
+++ b/vcl/source/control/morebtn.cxx
@@ -50,6 +50,7 @@ void MoreButton::ImplInit( Window* pParent, WinBits nStyle )
ShowState();
SetSymbolAlign(SYMBOLALIGN_RIGHT);
+ SetImageAlign(IMAGEALIGN_RIGHT); //Resoves: fdo#31849 ensure button remains vertically centered
SetSmallSymbol(true);
if ( ! ( nStyle & ( WB_RIGHT | WB_LEFT ) ) )