[Libreoffice-commits] core.git: sfx2/source
Zolnai Tamás
tamas.zolnai at collabora.com
Thu Jan 9 02:53:40 PST 2014
sfx2/source/control/recentdocsview.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6988b392f3c1a3b0ade2414a58da86f00fad8347
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date: Thu Jan 9 11:48:03 2014 +0100
Startcenter: when screen is small make doc thumbails smaller, v.2
Change-Id: I2ff45c5455e747ea3726b17b6384111db2699fa9
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index 9db0f66..ea77013 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 );
More information about the Libreoffice-commits
mailing list