diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-09 11:48:03 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-01-09 11:51:54 +0100 |
commit | 6988b392f3c1a3b0ade2414a58da86f00fad8347 (patch) | |
tree | 412db5e3b10b38b95661aaa768ae8b72f1fd3650 /sfx2 | |
parent | 8b6823e0bae689519839f18031e9c59a94dfbec8 (diff) |
Startcenter: when screen is small make doc thumbails smaller, v.2
Change-Id: I2ff45c5455e747ea3726b17b6384111db2699fa9
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 4 |
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 ); |