Kaydet (Commit) 29e89925 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#116116 vertically center line in allocated height

Change-Id: Iee4cd859cdc52a2272f5b01c3e4a57336cc336a4
Reviewed-on: https://gerrit.libreoffice.org/50881Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 5d710cf7
...@@ -1750,6 +1750,7 @@ void CustomPropertiesWindow::CreateNewLine() ...@@ -1750,6 +1750,7 @@ void CustomPropertiesWindow::CreateNewLine()
pNewLine->m_aValueEdit->SetAccessibleName(m_pHeaderAccValue->GetText()); pNewLine->m_aValueEdit->SetAccessibleName(m_pHeaderAccValue->GetText());
sal_Int32 nPos = GetExistingLineCount() * GetLineHeight(); sal_Int32 nPos = GetExistingLineCount() * GetLineHeight();
nPos += LogicToPixel(Size(0, 2), MapMode(MapUnit::MapAppFont)).Height();
m_aCustomPropertiesLines.push_back( pNewLine ); m_aCustomPropertiesLines.push_back( pNewLine );
SetWidgetWidths(pNewLine); SetWidgetWidths(pNewLine);
......
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