diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-28 14:09:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-28 14:16:19 +0100 |
commit | 6bdd62ac7b089cb4e622c632111bdea40517b3a7 (patch) | |
tree | e902816ae4ffed06916e80132b3d20a79dca3bd8 /sw | |
parent | 4bfc4a51fe0c88472de6580edf7002031855eae3 (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.cxx | 7 |
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, |