Kaydet (Commit) 7d6f4391 authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 1bdf1122
......@@ -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 ) ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment