summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-02-23 19:06:24 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-02-23 23:50:10 +0900
commit04767c132c1ca692c7e989b241eae40af33e43e8 (patch)
treeea7d552a2b5f5386f0bdd63a27efa1922c6a9687 /sc
parent4dd3e2421786bc13aca46e65da6c0510d8a32afc (diff)
make calc splitter handle HiDPI aware
Splitter is very small on a HiDPI screen, which also makes the mouse hit area small and thus hard to click. This change scales the width of the handle in relation to DPI scale factor. Change-Id: I5dacdafc97bf9cbeae7dcc888ba67d804ce62587
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabview.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index efc775817062..1f5f07ca26b1 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -332,10 +332,12 @@ void ScTabView::DoResize( const Point& rOffset, const Size& rSize, bool bInner )
if ( bMinimized )
return;
- long nSplitSizeX = SPLIT_HANDLE_SIZE;
+ sal_Int32 aScaleFactor = pFrameWin->GetDPIScaleFactor();
+
+ long nSplitSizeX = SPLIT_HANDLE_SIZE * aScaleFactor;
if ( aViewData.GetHSplitMode() == SC_SPLIT_FIX )
nSplitSizeX = 1;
- long nSplitSizeY = SPLIT_HANDLE_SIZE;
+ long nSplitSizeY = SPLIT_HANDLE_SIZE * aScaleFactor;
if ( aViewData.GetVSplitMode() == SC_SPLIT_FIX )
nSplitSizeY = 1;