sfx2/source/sidebar/SidebarPanelBase.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit c86090015f19506d9d1f67c99f7ee67f9a161b4c Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Fri Feb 12 17:18:51 2021 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Sat Mar 6 17:49:08 2021 +0100 sidebar: use real height to determine preffered size There was a bug causing to crop the sidebar in online: 1. open odt file in 2 sessions 2. select image in session A 3. move mouse over sidebar in session B 4. move mouse over sidebar in session A Result: sidebar A was cropped PosSizePropertyPanel on context change did some windows visibility changes in the meantime. get_preffered_size() returned lower height than real value in SidebarPanelBase::getHeightForWidth call queue_resize to invalidate cached optimal size Change-Id: I8080259ffb12ae3f6613e7749e908d6ef55c1f3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110894 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Jan Holesovsky <ke...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112092 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/sfx2/source/sidebar/SidebarPanelBase.cxx b/sfx2/source/sidebar/SidebarPanelBase.cxx index 0ed57e2f66c2..ea98f7659aef 100644 --- a/sfx2/source/sidebar/SidebarPanelBase.cxx +++ b/sfx2/source/sidebar/SidebarPanelBase.cxx @@ -172,6 +172,7 @@ ui::LayoutSize SAL_CALL SidebarPanelBase::getHeightForWidth (const sal_Int32 nWi else if (isLayoutEnabled(mpControl)) { // widget layout-based sidebar + mpControl->queue_resize(); Size aSize(mpControl->get_preferred_size()); return ui::LayoutSize(aSize.Height(), aSize.Height(), aSize.Height()); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits