sw/source/uibase/docvw/PostItMgr.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit ec5235ddfd62ca490d13fbc2c91e740a44f9950e Author: Rafael Lima <[email protected]> AuthorDate: Fri Jul 26 20:49:24 2024 +0200 Commit: Rafael Lima <[email protected]> CommitDate: Tue Aug 6 00:22:23 2024 +0200 tdf#159146 Fix layout after resizing commend width in Writer This patch ensure that resizing the comment sidebar will update the entire layout. Change-Id: Ia3c805569525c558191b253d694ac1f2e99f2ace Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171039 Tested-by: Jenkins Reviewed-by: Rafael Lima <[email protected]> Reviewed-by: Heiko Tietze <[email protected]> diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index a768bc2b63d0..26cebad5fe8e 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -2203,6 +2203,11 @@ void SwPostItMgr::SetSidebarWidth(Point aMousePos) comphelper::ConfigurationChanges::create()); officecfg::Office::Writer::Notes::DisplayWidthFactor::set(nFactor, xChanges); xChanges->commit(); + + // tdf#159146 After resizing the sidebar the layout and the ruler needs to be updated + mpWrtShell->InvalidateLayout(true); + mpView->GetHRuler().Invalidate(); + LayoutPostIts(); }
