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:
parent
6661ebe5d3
commit
a27c613b83
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue