summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-01-09 00:23:31 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-01-09 10:59:32 +0100
commit0b41ebf3af0faeb3d8dca05477e2a4766a0387d5 (patch)
treef220e001b7dc6922ee41b2ee6e24c56660c33805 /sfx2
parentcda6438cc2c9be0032a80910f7e903dd7775838c (diff)
Startcenter: when screen is small make doc thumbails smaller
Change-Id: If4fbb66992318221a687710afa77fc98e4f111c3
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/recentdocsview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 6c92b459982e..fb251729ac6a 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -18,7 +18,7 @@
*/
#include <sfx2/recentdocsview.hxx>
-
+#include <vcl/svapp.hxx>
#include <sfx2/templateabstractview.hxx>
#include <sfx2/app.hxx>
#include <sfx2/sfx.hrc>
@@ -41,7 +41,7 @@ using namespace com::sun::star::beans;
RecentDocsView::RecentDocsView( Window* pParent )
: ThumbnailView(pParent)
, mnFileTypes(TYPE_NONE)
- , mnItemMaxSize(256)
+ , mnItemMaxSize(Application::GetScreenPosSizePixel(Application::GetDisplayBuiltInScreen()).GetWidth() > 800 ? 256 : 192)
, mnTextHeight(30)
, mnItemPadding(5)
, mnItemMaxTextLength(30)