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>
This commit is contained in:
Ashod Nakashian 2018-10-03 06:31:33 -04:00 committed by Noel Grandin
parent 6661ebe5d3
commit a27c613b83

View file

@ -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);