sfx2: collapse the sidebar instead of closing on toggle
commit4790923b8c7de719b6c4cb84aff5997a040df2c8
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>
Sun, 7 Oct 2018 12:33:41 +0000 (7 08:33 -0400)
committerNoel Grandin <noel.grandin@collabora.co.uk>
Thu, 25 Jul 2019 17:25:14 +0000 (25 19:25 +0200)
treefef08e33460f9d3a8e9e780da738e5a3a051c357
parentca8f1ff34e291b74068dace619e58c37ef169f88
sfx2: collapse the sidebar instead of closing on toggle

When toggling a sidebar deck that is open, the default
behavior when floating is to close the sidebar altogether.
This is both inconsistent with the behaviour when docked
and unexpected.

Now we simply collapse the sidebar into the TabBar (toolbar)
as is done when docked. This is also the behavior desired
from LoKit since the sidebar is rendered floating (to allow
arbitrary resizing).

The collapsed sidebar into toolbar is shown in same-position.

Change-Id: I0519c5ad012cc9df31758927a4dbcd774d47fcd3
Reviewed-on: https://gerrit.libreoffice.org/73505
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
sfx2/source/sidebar/SidebarController.cxx