summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-14 11:30:05 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2021-01-14 16:37:01 +0100
commit1052c9c8bb763866ba6b2cb9b86063f22d6fb9ee (patch)
treed53349101fa21e16e17cdff1dfce45810d0c8eb8
parentc2ea190a0ef9a9eb4f66ea6b708f9a1735d5e0c4 (diff)
tdf#136155 let the other elements in the dialog determine the final width
Change-Id: Ib47db4f47a331b1f3754ca4974a9f3e5b14efc95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109277 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sc/source/ui/dbgui/sortkeydlg.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/sortkeydlg.cxx b/sc/source/ui/dbgui/sortkeydlg.cxx
index ec81bda34fc1..a5cf6e8f4e66 100644
--- a/sc/source/ui/dbgui/sortkeydlg.cxx
+++ b/sc/source/ui/dbgui/sortkeydlg.cxx
@@ -19,6 +19,9 @@ ScSortKeyItem::ScSortKeyItem(weld::Container* pParent)
, m_xBtnDown(m_xBuilder->weld_radio_button("down"))
, m_pParent(pParent)
{
+ // tdf#136155 let the other elements in the dialog determine the width of the
+ // combobox
+ m_xLbSort->set_size_request(m_xLbSort->get_approximate_digit_width() * 12, -1);
}
ScSortKeyItem::~ScSortKeyItem()