From 7d6f4391deb85012c4ede0bb5f35b1d6f347bc0f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 1 May 2013 16:44:00 +0100 Subject: 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 --- vcl/source/control/morebtn.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl') 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 ) ) ) -- cgit