tdf#160621 Variable field dialog size of value field

The size of the value field is now set to 5 rows.

Change-Id: I808ffbb64d71a0707857cf80d1c0b73419ac7b90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177893
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
This commit is contained in:
Oliver Specht 2024-12-05 15:34:18 +01:00 committed by Thorsten Behrens
parent bd727654ec
commit add6efb409

View file

@ -127,6 +127,9 @@ void SwFieldVarPage::Reset(const SfxItemSet* )
m_xTypeLB->set_size_request(nWidth, nHeight); m_xTypeLB->set_size_request(nWidth, nHeight);
m_xSelectionLB->set_size_request(nWidth, nHeight); m_xSelectionLB->set_size_request(nWidth, nHeight);
m_xFormatLB->set_size_request(nWidth, nHeight/2); m_xFormatLB->set_size_request(nWidth, nHeight/2);
auto size = m_xValueED->get_widget().get_size_request();
m_xValueED->get_widget().set_size_request(size.getWidth(),
m_xValueED->get_widget().get_height_rows(5));
const SwField* pCurField = GetCurField(); const SwField* pCurField = GetCurField();
assert(pCurField && "<SwFieldVarPage::Reset(..)> - <SwField> instance missing!"); assert(pCurField && "<SwFieldVarPage::Reset(..)> - <SwField> instance missing!");
nTypeId = pCurField->GetTypeId(); nTypeId = pCurField->GetTypeId();