summaryrefslogtreecommitdiff
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-03-11 12:12:59 +0100
commit922fb093b602f4569c316e8d6300432110198313 (patch)
treec24ba9da6a1b2612f5a4ca64a2bf3899789c247f
parent73112b3817beaab1517c5b92fbfa452e08c486e9 (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)
-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;
}