summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusobhan Ghosh <susobhang70@gmail.com>2016-08-12 02:02:00 +0530
committerYousuf Philips <philipz85@hotmail.com>2016-08-12 09:22:00 +0000
commit66636aeb7d2a6da8f409d17610f62be875e9bb64 (patch)
tree77323136889040fb130ebc7a3e91281a7aef0731
parent91f58f4782e1c97f4f88937512ea80966175f2c8 (diff)
Tweak pagesize listbox Optimal size
Change-Id: Ic46962f69ed846d0322756a1a3ac18ea9da6b90a Reviewed-on: https://gerrit.libreoffice.org/28065 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
-rw-r--r--include/svx/papersizelistbox.hxx2
-rw-r--r--svx/source/dialog/papersizelistbox.cxx5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/papersizelistbox.hxx b/include/svx/papersizelistbox.hxx
index 8bc82f70542e..4ff24e30dd6f 100644
--- a/include/svx/papersizelistbox.hxx
+++ b/include/svx/papersizelistbox.hxx
@@ -38,6 +38,8 @@ public:
void FillPaperSizeEntries( PaperSizeApp eApp );
void SetSelection( Paper eSize );
Paper GetSelection() const;
+
+ Size GetOptimalSize() const override;
};
#endif
diff --git a/svx/source/dialog/papersizelistbox.cxx b/svx/source/dialog/papersizelistbox.cxx
index ded286865bb9..30dbf0ed0fc3 100644
--- a/svx/source/dialog/papersizelistbox.cxx
+++ b/svx/source/dialog/papersizelistbox.cxx
@@ -78,5 +78,10 @@ Paper PaperSizeListBox::GetSelection() const
return ePaper;
}
+
+Size PaperSizeListBox::GetOptimalSize() const
+{
+ return Size(150, ListBox::GetOptimalSize().Height());
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */