diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-10-03 06:31:33 -0400 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-25 15:16:44 +0200 |
commit | a27c613b8305cbf1f541771d23f38dbe65bc51cf (patch) | |
tree | a789943eb6e774743433f7d4c079d09beff5e008 | |
parent | 6661ebe5d3c2ce12a99a6af4c8de51b61b279e57 (diff) |
sfx2: LOK: support resizing the sidebar
Change-Id: I852c522f176a8d11d3a19709ab1cd75023645c66
Reviewed-on: https://gerrit.libreoffice.org/73504
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sfx2/source/sidebar/SidebarChildWindow.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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 <sfx2/sfxsids.hrc> #include <helpids.h> #include <sfx2/dockwin.hxx> +#include <comphelper/lok.hxx> 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); |