summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-03-09 14:57:28 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-08-29 20:10:53 +0900
commit9309a5be4bda01ce05bf51e4be018e58d77ed59a (patch)
tree10ff15b27d56f3f5f056929f5b970fb72b3121f6 /vcl
parente661e8df187503cfeaf4122f852468ec19de5a56 (diff)
widget theme: adjust draw positions of editbox, combobox, listbox
Change-Id: Id14b5530c994e10bb9f45f036b43025c73c7ac83 Reviewed-on: https://gerrit.libreoffice.org/68977 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit a66e0f83cb488e024319f67add61b08528a39596)
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 17b7c2c833db..4fb2fd315f8d 100644
--- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
+++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx
@@ -734,6 +734,7 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
std::max(rBoundingControlRegion.GetHeight(), 32L));
rNativeContentRegion = tools::Rectangle(aLocation, aSize);
rNativeBoundingRegion = rNativeContentRegion;
+ rNativeBoundingRegion.expand(2);
return true;
}
break;
@@ -764,7 +765,7 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
{
Point aPoint(aLocation.X() + rBoundingControlRegion.GetWidth()
- aComboButtonSize.Width(),
- aLocation.Y());
+ aLocation.Y() + 1);
rNativeContentRegion = tools::Rectangle(aPoint, aComboButtonSize);
rNativeBoundingRegion = rNativeContentRegion;
return true;
@@ -773,8 +774,7 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion(
{
Size aSize(rBoundingControlRegion.GetWidth() - aComboButtonSize.Width(),
aComboButtonSize.Height());
- rNativeContentRegion = tools::Rectangle(aLocation, aSize);
- rNativeContentRegion.expand(1);
+ rNativeContentRegion = tools::Rectangle(aLocation + Point(1, 1), aSize);
rNativeBoundingRegion = rNativeContentRegion;
return true;
}