diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-31 12:29:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-31 12:29:43 +0100 |
commit | c799a1e5522971405fa45d3df7ebf259229df63e (patch) | |
tree | 1232e283488c4a08aa972b1a0e3b71e481c8e2e2 /svx | |
parent | b796e3f968002c7b58165c5d55d5c43bf778e92b (diff) |
autosize the frame direction listbox
Change-Id: I440ca0255a6079c28b2314b12511c6c41d6a05f5
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/frmdirlbox.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/dialog/frmdirlbox.cxx b/svx/source/dialog/frmdirlbox.cxx index 7de943787911..ad1697d30f82 100644 --- a/svx/source/dialog/frmdirlbox.cxx +++ b/svx/source/dialog/frmdirlbox.cxx @@ -56,7 +56,9 @@ FrameDirectionListBox::~FrameDirectionListBox() extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeFrameDirectionListBox(Window *pParent, VclBuilder::stringmap &) { - return new FrameDirectionListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP); + FrameDirectionListBox* pListBox = new FrameDirectionListBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP); + pListBox->EnableAutoSize(true); + return pListBox; } |