summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-03 09:03:03 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2015-04-03 10:03:26 +0000
commite80a94284be2e73526d41fc6be99c7255f4c2ca3 (patch)
tree2242383c06b7f51a87bf20544ba3c627de2ea335 /sw
parent7f80b3eb26769143e18806392164aae8c5ad9763 (diff)
Resolves: tdf#89785 drop down list sizes locked in too early
get initial size request after language and sort lists have been filled. We should really queue_resize in list/combo boxes if the StateChanged::DATA gets emitted for them. But we're mostly gotten away with it so far. Change-Id: I37137365e8e71b8f803977edaf46d6c7cfb3fcc2 (cherry picked from commit 1038a323fb407bcc514426a2fb9e251216d37399) Reviewed-on: https://gerrit.libreoffice.org/15134 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/index/cnttab.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 70b06ab6cc20..c0065b78f64a 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -824,16 +824,17 @@ SwTOXSelectTabPage::SwTOXSelectTabPage(vcl::Window* pParent, const SfxItemSet& r
get(m_pLanguageLB, "lang");
get(m_pSortAlgorithmLB, "keytype");
- //Default mode is arranged to be the tallest mode
- //of alphabetical index, lock that height in now
- Size aPrefSize(get_preferred_size());
- set_height_request(aPrefSize.Height());
-
pIndexEntryWrapper = new IndexEntrySupplierWrapper();
m_pLanguageLB->SetLanguageList( LANG_LIST_ALL | LANG_LIST_ONLY_KNOWN,
false, false, false );
+ //Default mode is arranged to be the tallest mode
+ //of alphabetical index, lock that height in now
+ LanguageHdl(0); //fill sort algorithm list
+ Size aPrefSize(get_preferred_size());
+ set_height_request(aPrefSize.Height());
+
sAddStyleContent = m_pAddStylesCB->GetText();
ResStringArray& rNames = aFromNames.GetNames();