summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2018-11-20 12:04:58 -0500
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-26 11:46:26 +0200
commite6c62ff1361ac5b9b430ddd5dae729a8b10aadff (patch)
tree7d6857b6e15a66809422e58d648263133f9837d5 /sfx2
parenta1b718044dadc46388bff0e20a7e50bf9d514596 (diff)
LOK: sidebar: start collapsed
Change-Id: I589fce5ee207da0e0ac113b7ccc1ed1edd06c5da Reviewed-on: https://gerrit.libreoffice.org/73513 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/SidebarChildWindow.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarChildWindow.cxx b/sfx2/source/sidebar/SidebarChildWindow.cxx
index e84d2fb4b379..ac0a68852ea9 100644
--- a/sfx2/source/sidebar/SidebarChildWindow.cxx
+++ b/sfx2/source/sidebar/SidebarChildWindow.cxx
@@ -62,8 +62,12 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n
if (comphelper::LibreOfficeKit::isActive())
{
- // Undock for Lok.
- pDockingParent->SetFloatingSize(Size(400, 600));
+ // Undock sidebar in LOK to allow for resizing freely
+ // (i.e. when the client window is resized) and collapse
+ // it so the client can open it on demand.
+ pDockingParent->SetFloatingSize(
+ Size(TabBar::GetDefaultWidth() * GetWindow()->GetDPIScaleFactor(),
+ pDockingParent->GetSizePixel().Height()));
pDockingParent->SetFloatingMode(true);
}
}