diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-11-18 00:34:43 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-11-18 07:15:00 +0100 |
commit | 9e7a0fc1573a95a1542207ac86a18e630c1fc835 (patch) | |
tree | 6f842deb655ca1aef3365c1ad6e8531984c5b88a /vcl | |
parent | 959dab6e0642ae7760c3bf4ff2d8bccbbe4dad14 (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>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index 3d650719eb79..d6f827de3938 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -898,8 +898,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; @@ -917,7 +917,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; } } |