summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-28 14:09:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-28 14:16:19 +0100
commit6bdd62ac7b089cb4e622c632111bdea40517b3a7 (patch)
treee902816ae4ffed06916e80132b3d20a79dca3bd8 /sw
parent4bfc4a51fe0c88472de6580edf7002031855eae3 (diff)
autosize the user-defined number format listbox in database field tabpage
Change-Id: I9349cfb30f544d6e64231910e3dad832a3770509
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/utlui/numfmtlb.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/ui/utlui/numfmtlb.cxx b/sw/source/ui/utlui/numfmtlb.cxx
index b09ead625f91..221f8baad606 100644
--- a/sw/source/ui/utlui/numfmtlb.cxx
+++ b/sw/source/ui/utlui/numfmtlb.cxx
@@ -79,7 +79,12 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeNumFormatListBox(Window *pP
else
nBits |= WB_BORDER;
- return new NumFormatListBox(pParent, nBits|WB_SIMPLEMODE);
+ NumFormatListBox* pListBox = new NumFormatListBox(pParent, nBits|WB_SIMPLEMODE);
+
+ if (bDropdown)
+ pListBox->EnableAutoSize(true);
+
+ return pListBox;
}
NumFormatListBox::NumFormatListBox( Window* pWin, SwView* pView,