Kaydet (Commit) 04767c13 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

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
üst 4dd3e242
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment