summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKeith Curtis <keithcu@gmail.com>2014-03-17 20:16:57 -0400
committerCaolán McNamara <caolanm@redhat.com>2014-03-21 11:26:33 +0000
commit509441038ab95dd3a60efd1b6c302bf22bfbc631 (patch)
tree3b38fb3f2738c7da421182ed793bc713f4487900 /vcl
parente262050a52a6ff154a219e9b0d5e1f66d20a3ead (diff)
Hopefully fix Windows HiDPI toolbar layout bug
On Windows HiDPI, toolbar buttons are cut off. This may fix the problem. Here is a screenshot: http://i.imgur.com/NADAvYi.png I can't prove this fixes anything on Windows because I can't see this on Linux and don't really understand the surrounding code. On the other hand, it is easy to prove this is reasonable code. Change-Id: I69c19ad46844bead942ce63883d163cb9d0690c9 Reviewed-on: https://gerrit.libreoffice.org/8637 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/toolbox.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 3cb732247859..61204c9bac0d 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1736,8 +1736,8 @@ bool ToolBox::ImplCalcItem()
long nDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
// set defaults if image or text is needed but empty
- nDefWidth = GetDefaultImageSize().Width();
- nDefHeight = GetDefaultImageSize().Height();
+ nDefWidth = GetDefaultImageSize().Width() * GetDPIScaleFactor();
+ nDefHeight = GetDefaultImageSize().Height() * GetDPIScaleFactor();
mnWinHeight = 0;
// determine minimum size necessary in NWF