From a27c613b8305cbf1f541771d23f38dbe65bc51cf Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Wed, 3 Oct 2018 06:31:33 -0400 Subject: [PATCH] sfx2: LOK: support resizing the sidebar Change-Id: I852c522f176a8d11d3a19709ab1cd75023645c66 Reviewed-on: https://gerrit.libreoffice.org/73504 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/sidebar/SidebarChildWindow.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sfx2/source/sidebar/SidebarChildWindow.cxx b/sfx2/source/sidebar/SidebarChildWindow.cxx index 7153c1d461b1..0e5e73bbfdf5 100644 --- a/sfx2/source/sidebar/SidebarChildWindow.cxx +++ b/sfx2/source/sidebar/SidebarChildWindow.cxx @@ -24,6 +24,7 @@ #include #include #include +#include namespace sfx2 { namespace sidebar { @@ -57,6 +58,13 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n pDockingParent->GetSizePixel().Height())); } pDockingParent->Initialize(pInfo); + + if (comphelper::LibreOfficeKit::isActive()) + { + // Undock for Lok. + pDockingParent->SetFloatingSize(Size(400, 600)); + pDockingParent->SetFloatingMode(true); + } } SetHideNotDelete(true);