summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-12-28 22:38:28 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-12-28 23:54:59 +0900
commit37fa4e781dd0a0edccb59eaf5d8b624f15ef469a (patch)
treecde7918abb135f3869806cab7d2dcc6e700bef04 /svtools
parent74d84c5065aa7332dcc1af1844f9b8af589165aa (diff)
HiDPI: TabBar resizer changes size depending on DPI scale factor
Change-Id: I36a6d22f87b0d96cdbdadd683cd3abeb12e28c77
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/tabbar.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 4cf4e9af2669..0cdd4944f863 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -167,8 +167,9 @@ ImplTabSizer::ImplTabSizer( TabBar* pParent, WinBits nWinStyle )
: Window( pParent, nWinStyle & WB_3DLOOK )
, mnStartWidth(0)
{
- SetPointer( Pointer( POINTER_HSIZEBAR ) );
- SetSizePixel( Size( 7, 0 ) );
+ sal_Int32 nScaleFactor = GetDPIScaleFactor();
+ SetPointer(Pointer(POINTER_HSIZEBAR));
+ SetSizePixel(Size(7 * nScaleFactor, 0));
}