summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/flddok.cxx
diff options
context:
space:
mode:
authorKevin Suo <suokunlong@126.com>2020-12-18 19:42:29 +0800
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2020-12-23 11:37:39 +0100
commit8be0be8066f50e0ce660d40f121c7d7891f1bc49 (patch)
treea3f9790ae00d62519308d9fb34931e54ef3ce797 /sw/source/ui/fldui/flddok.cxx
parentce614dcc6d099ce14acae22b48dacf299ef470fb (diff)
tdf#130275: Fields dialog is too tall
...which makes the OK/Cancel buttons invisible under small displays. This commit changed the height of these widgets. Also I did some tweats to the UI file and the width so that the edit dialog of these fields looks nicer (at least on my display). Change-Id: I9f39727afd566d75db525c5a5cafe2eabb66d7ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107965 Tested-by: Jenkins Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw/source/ui/fldui/flddok.cxx')
-rw-r--r--sw/source/ui/fldui/flddok.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/fldui/flddok.cxx b/sw/source/ui/fldui/flddok.cxx
index 5c6bc57e70aa..7164c4ff2692 100644
--- a/sw/source/ui/fldui/flddok.cxx
+++ b/sw/source/ui/fldui/flddok.cxx
@@ -53,11 +53,11 @@ SwFieldDokPage::SwFieldDokPage(weld::Container* pPage, weld::DialogController* p
m_xFormatLB->make_sorted();
auto nWidth = m_xTypeLB->get_approximate_digit_width() * FIELD_COLUMN_WIDTH;
- auto nHeight = m_xTypeLB->get_height_rows(20);
+ auto nHeight = m_xTypeLB->get_height_rows(10);
m_xTypeLB->set_size_request(nWidth, nHeight);
m_xSelectionLB->set_size_request(nWidth, nHeight);
- m_xFormatLB->set_size_request(nWidth, nHeight);
+ m_xFormatLB->set_size_request(nWidth * 2, nHeight);
m_xSelectionLB->connect_row_activated(LINK(this, SwFieldDokPage, TreeViewInsertHdl));
m_xFormatLB->connect_row_activated(LINK(this, SwFieldDokPage, TreeViewInsertHdl));