summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/control/recentdocsview.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 9db0f6683999..ea7701394b94 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -41,7 +41,6 @@ using namespace com::sun::star::beans;
RecentDocsView::RecentDocsView( Window* pParent )
: ThumbnailView(pParent)
, mnFileTypes(TYPE_NONE)
- , mnItemMaxSize(Application::GetScreenPosSizePixel(Application::GetDisplayBuiltInScreen()).GetWidth() > 800 ? 256 : 192)
, mnTextHeight(30)
, mnItemPadding(5)
, mnItemMaxTextLength(30)
@@ -49,6 +48,9 @@ RecentDocsView::RecentDocsView( Window* pParent )
, maWelcomeLine1(SfxResId(STR_WELCOME_LINE1))
, maWelcomeLine2(SfxResId(STR_WELCOME_LINE2))
{
+ Rectangle aScreen = Application::GetScreenPosSizePixel(Application::GetDisplayBuiltInScreen());
+ mnItemMaxSize = std::min(aScreen.GetWidth(),aScreen.GetHeight()) > 800 ? 256 : 192;
+
SetStyle(GetStyle() | WB_VSCROLL);
setItemMaxTextLength( mnItemMaxTextLength );
setItemDimensions( mnItemMaxSize, mnItemMaxSize, mnTextHeight, mnItemPadding );
itle='2017-06-28 08:54:42 +0200'>2017-06-28loplugin:oncevar in test..toolsNoel Grandin Change-Id: I7b3ccc8f227100ff7fedeaca96a12f135da60bab Reviewed-on: https://gerrit.libreoffice.org/39326 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> 2017-04-28loplugin:cppunitassertequals: testStephan Bergmann Change-Id: I3357b7502fcf9a45095919157ca1530e10c14dd0 2017-03-19Fix typos + some German translationsAndrea Gelmini Change-Id: I1c5bb725ffdf72363279436ad9bbb88064228253 Reviewed-on: https://gerrit.libreoffice.org/35406 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr> 2016-04-28teach stylepolice plugin about ref-counted-pointer namingNoel Grandin Change-Id: I6e91d22fc1826038c05ddb6fc065563c6a250752 Reviewed-on: https://gerrit.libreoffice.org/24459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> 2016-01-10Fix typosAndrea Gelmini Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>