vcl/source/window/floatwin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit a2264fb76a29809a0bcc0ffc9c87c1cd2ee1ebe6 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Fri Dec 24 15:25:30 2021 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Mon Feb 7 14:20:56 2022 +0100 lok: add 'dropdown' dialog type The position of the dropdwon is absolute to screen so add this type so we can transform correct position on the client side. Change-Id: I9e2faeb532e313a1a4043d4044f71ada2e7225a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127439 Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129459 Tested-by: Jenkins Reviewed-by: Henry Castro <hcas...@collabora.com> diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 5ac275290df3..80ab426aa98d 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -685,7 +685,10 @@ void FloatingWindow::StateChanged( StateChangedType nType ) // we are a toplevel window, let's so far pretend to be a // dialog - but maybe we'll need a separate type for this // later - aItems.emplace_back("type", "dialog"); + if (mbInPopupMode) + aItems.emplace_back("type", "dropdown"); + else + aItems.emplace_back("type", "dialog"); aItems.emplace_back("position", mpImplData->maLOKTwipsPos.toString()); // twips } else