summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-03 10:09:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-03 13:52:12 +0200
commit5a4ed4533127db8cf149353d587a7d3a89c5b338 (patch)
tree1b4c2a7c05be422ecfee23b73d1eee7a10d5c613 /cui
parent57cd494c9045d86d8337087be099c0a2e10beb23 (diff)
Resolves: tdf#119574 set specific width for style list widget
so super wide style name doesn't break things Change-Id: I096eb1d3deeb935b43566b4d3ccb45d89ac2a56a Reviewed-on: https://gerrit.libreoffice.org/59928 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/page.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index df36ebf3a12d..054bc8fb16ed 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -183,6 +183,8 @@ SvxPageDescPage::SvxPageDescPage(TabPageParent pParent, const SfxItemSet& rAttr)
, m_xPrintRangeQueryText(m_xBuilder->weld_label("labelMsg"))
, m_xBspWin(new weld::CustomWeld(*m_xBuilder, "drawingareaPageDirection", m_aBspWin))
{
+ m_xRegisterLB->set_size_request(m_xRegisterLB->get_approximate_digit_width() * 20, -1);
+
bBorderModified = false;
m_aBspWin.EnableRTL(false);
@@ -1425,8 +1427,10 @@ void SvxPageDescPage::SetCollectionList(const std::vector<OUString> &aList)
OSL_ENSURE(!aList.empty(), "Empty string list");
sStandardRegister = aList[0];
+ m_xRegisterLB->freeze();
for (size_t i = 1; i < aList.size(); ++i)
m_xRegisterLB->append_text(aList[i]);
+ m_xRegisterLB->thaw();
m_xRegisterCB->show();
m_xRegisterFT->show();