diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-09 00:23:31 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-09 10:59:32 +0100 |
commit | 0b41ebf3af0faeb3d8dca05477e2a4766a0387d5 (patch) | |
tree | f220e001b7dc6922ee41b2ee6e24c56660c33805 /sfx2 | |
parent | cda6438cc2c9be0032a80910f7e903dd7775838c (diff) |
Startcenter: when screen is small make doc thumbails smaller
Change-Id: If4fbb66992318221a687710afa77fc98e4f111c3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 4 |
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) |