summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-11-18 00:34:43 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-11-18 09:47:29 +0100
commitafe3205efb82447e49851c239334fe84692dec4f (patch)
treeb2d4197afac995a8b4a5a2f6cb83d90fde06f215 /vcl
parent16ff7dda3c385a33e4078e1bd46f5cf0807888de (diff)
widget theme: correct sizes of combobox/listbox
Combobox/listbox was clipped on the right side. Fixed this by increasing the size of the widget by one and moving the button to the right by one pixel. Change-Id: If73e93d0c99c1daff9c0bab095169dba3c619450 Reviewed-on: https://gerrit.libreoffice.org/83043 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 9e7a0fc1573a95a1542207ac86a18e630c1fc835) Reviewed-on: https://gerrit.libreoffice.org/83055 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/FileDefinitionWidgetDraw.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
index 1f7f13098ae7..4b913fa495d4 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -899,8 +899,8 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
if (ePart == ControlPart::ButtonDown)
{
Point aPoint(aLocation.X() + rBoundingControlRegion.GetWidth()
- - aComboButtonSize.Width(),
- aLocation.Y() + 1);
+ - aComboButtonSize.Width() - 1,
+ aLocation.Y());
rNativeContentRegion = tools::Rectangle(aPoint, aComboButtonSize);
rNativeBoundingRegion = rNativeContentRegion;
return true;
@@ -918,7 +918,7 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
Size aSize(rBoundingControlRegion.GetWidth(), aComboButtonSize.Height());
rNativeContentRegion = tools::Rectangle(aLocation, aSize);
rNativeBoundingRegion = rNativeContentRegion;
- rNativeBoundingRegion.expand(1);
+ rNativeBoundingRegion.expand(2);
return true;
}
}