diff options
Diffstat (limited to 'sw/source/ui/utlui/numfmtlb.cxx')
-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, |