vcl/source/window/floatwin.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit d489e2a674ac79555bc81c0ebad09ae8e51013d8
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Fri Dec 24 15:25:30 2021 -0400
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Dec 27 14:42:18 2021 +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>

diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 81c0ddb3d32d..f1923c5c1152 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -648,7 +648,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

Reply via email to