sw/source/uibase/sidebar/CommentsPanel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3f350a4c0f9a6dd7ee41bbc729d5b3180e21d730
Author:     Mohit Marathe <mohit.marathe.ext...@allotropia.de>
AuthorDate: Sun May 25 17:10:28 2025 +0530
Commit:     Mohit Marathe <mohit.marathe.ext...@allotropia.de>
CommitDate: Mon May 26 06:51:16 2025 +0200

    tdf#164237 sw: set preferred width of the thread in comments sidebar
    
    Change-Id: I04f879df1b04813b12df1ccaab0e7926a49798f5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185749
    Tested-by: Jenkins
    Reviewed-by: Mohit Marathe <mohit.marathe.ext...@allotropia.de>

diff --git a/sw/source/uibase/sidebar/CommentsPanel.cxx 
b/sw/source/uibase/sidebar/CommentsPanel.cxx
index e47d5aa59353..1f1018a6c586 100644
--- a/sw/source/uibase/sidebar/CommentsPanel.cxx
+++ b/sw/source/uibase/sidebar/CommentsPanel.cxx
@@ -174,7 +174,7 @@ Thread::Thread(weld::Container* pParent)
     , mxExpander(mxBuilder->weld_expander("expander"))
     , mxCommentBox(mxBuilder->weld_box("comments_box"))
 {
-    // mxContainer->set_size_request(-1, 
mxContainer->get_preferred_size().Height());
+    mxContainer->set_size_request(mxContainer->get_preferred_size().Width(), 
-1);
 }
 
 Thread::~Thread() {}

Reply via email to