diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-08-10 14:07:03 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-08-12 12:18:54 +0000 |
commit | c89b8ab187f23020873af00f2c20cc9407e5a755 (patch) | |
tree | 0cad26620cdc11a206c74b8df047a000cb115148 | |
parent | 8d26a169794083f047a57e5c8d3f5da0aaab2583 (diff) |
Tweak numbering listbox optimal size
Change-Id: I7dedd5bc405da04a14bc7d74475c85a90e989e9c
Reviewed-on: https://gerrit.libreoffice.org/28021
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r-- | include/svx/pagenumberlistbox.hxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/pagenumberlistbox.cxx | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/pagenumberlistbox.hxx b/include/svx/pagenumberlistbox.hxx index 872a3f252545..72424e07aa72 100644 --- a/include/svx/pagenumberlistbox.hxx +++ b/include/svx/pagenumberlistbox.hxx @@ -30,6 +30,8 @@ public: void SetSelection( sal_uInt16 ); sal_uInt16 GetSelection() const; + + Size GetOptimalSize() const override; }; #endif diff --git a/svx/source/dialog/pagenumberlistbox.cxx b/svx/source/dialog/pagenumberlistbox.cxx index 46c13d4fa281..0101b34217c5 100644 --- a/svx/source/dialog/pagenumberlistbox.cxx +++ b/svx/source/dialog/pagenumberlistbox.cxx @@ -66,4 +66,9 @@ sal_uInt16 PageNumberListBox::GetSelection() const return nData; } +Size PageNumberListBox::GetOptimalSize() const +{ + return Size(150, ListBox::GetOptimalSize().Height()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |