sw/source/uibase/docvw/edtwin2.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 8d317a4f8159117c27721192cc8f8ac6c694fdc0 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Nov 13 16:55:07 2020 +0000 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Sat Nov 14 21:01:00 2020 +0100 tdf#136336 ensure tooltip area surrounds the current mouse position with at least a pixel margin Change-Id: I74935f0275863cfd5a799927034d0a31dae073cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105547 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/sw/source/uibase/docvw/edtwin2.cxx b/sw/source/uibase/docvw/edtwin2.cxx index c023047a5560..b48b18ec43d2 100644 --- a/sw/source/uibase/docvw/edtwin2.cxx +++ b/sw/source/uibase/docvw/edtwin2.cxx @@ -364,6 +364,13 @@ void SwEditWin::RequestHelp(const HelpEvent &rEvt) aRect.SetRight( aPt.X() ); aRect.SetBottom( aPt.Y() ); + // tdf#136336 ensure tooltip area surrounds the current mouse position with at least a pixel margin + aRect.Union(tools::Rectangle(rEvt.GetMousePosPixel(), Size(1, 1))); + aRect.AdjustLeft(-1); + aRect.AdjustRight(1); + aRect.AdjustTop(-1); + aRect.AdjustBottom(1); + if( bBalloon ) Help::ShowBalloon( this, rEvt.GetMousePosPixel(), aRect, sText ); else _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits