Kaydet (Commit) c7e54c1b authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Jan Holesovsky

LOK: sidebar: start collapsed

Change-Id: I589fce5ee207da0e0ac113b7ccc1ed1edd06c5da
üst f9564ae1
...@@ -62,8 +62,12 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n ...@@ -62,8 +62,12 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n
if (comphelper::LibreOfficeKit::isActive()) if (comphelper::LibreOfficeKit::isActive())
{ {
// Undock for Lok. // Undock sidebar in LOK to allow for resizing freely
pDockingParent->SetFloatingSize(Size(400, 600)); // (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); pDockingParent->SetFloatingMode(true);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment