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:
parent
bd727654ec
commit
add6efb409
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ void SwFieldVarPage::Reset(const SfxItemSet* )
|
|||
m_xTypeLB->set_size_request(nWidth, nHeight);
|
||||
m_xSelectionLB->set_size_request(nWidth, nHeight);
|
||||
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();
|
||||
assert(pCurField && "<SwFieldVarPage::Reset(..)> - <SwField> instance missing!");
|
||||
nTypeId = pCurField->GetTypeId();
|
||||
|
|
Loading…
Reference in a new issue