diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-11-20 12:04:58 -0500 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-26 11:46:26 +0200 |
commit | e6c62ff1361ac5b9b430ddd5dae729a8b10aadff (patch) | |
tree | 7d6857b6e15a66809422e58d648263133f9837d5 | |
parent | a1b718044dadc46388bff0e20a7e50bf9d514596 (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>
-rw-r--r-- | sfx2/source/sidebar/SidebarChildWindow.cxx | 8 |
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); } } |