sw/source/uibase/docvw/PostItMgr.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 3e040de9d5bb9587613277015d77133b9e2e0791
Author:     Rafael Lima <rafael.palma.l...@gmail.com>
AuthorDate: Fri Jul 26 20:49:24 2024 +0200
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Sat Aug 10 10:08:06 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 <rafael.palma.l...@gmail.com>
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>
    (cherry picked from commit ec5235ddfd62ca490d13fbc2c91e740a44f9950e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171540
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sw/source/uibase/docvw/PostItMgr.cxx 
b/sw/source/uibase/docvw/PostItMgr.cxx
index afb2238c3a04..d68fc77c4940 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -2212,6 +2212,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();
 }
 

Reply via email to