diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-01 16:44:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-01 16:47:40 +0100 |
commit | 7d6f4391deb85012c4ede0bb5f35b1d6f347bc0f (patch) | |
tree | f8230013cc518decb8d63256bf66bab79e9c08d0 /vcl/source/control | |
parent | 1bdf1122a9860a460ba6275d747d8baeedcfe1d1 (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
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/morebtn.cxx | 1 |
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 ) ) ) |