svx/source/tbxctrls/linectrl.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit b77b59adca898565b88b38a0d5b6b51fcda52f1b
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Oct 20 21:04:09 2025 +0100
Commit:     Christian Lohmaier <[email protected]>
CommitDate: Wed Oct 22 11:52:40 2025 +0200

    Resolves: tdf#164920 add scrollbar width to desired size if enabled
    
    Change-Id: Ib6e354d5a4a9076b81e6a26fe78bdd4994024ec1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192755
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>
    (cherry picked from commit 25e08e4ea0df956f46bd7ef81493fcf5a5c1879c)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192810
    Reviewed-by: Christian Lohmaier <[email protected]>

diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index 617bdb8f8fbc..bb01e8e31a90 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -432,6 +432,8 @@ void SvxLineEndWindow::SetSize()
     aSize.AdjustWidth(6 );
     aSize.AdjustHeight(6 );
     aSize = mxLineEndSet->CalcWindowSizePixel( aSize );
+    if (nBits | WB_VSCROLL)
+        aSize.AdjustWidth(mxLineEndSet->GetScrollWidth());
     mxLineEndSet->GetDrawingArea()->set_size_request(aSize.Width(), 
aSize.Height());
     mxLineEndSet->SetOutputSizePixel(aSize);
 }
@@ -571,6 +573,8 @@ void SvxLineBox::Fill( const XDashListRef &pList )
     aSize.AdjustWidth(6);
     aSize.AdjustHeight(6);
     aSize = mxLineStyleSet->CalcWindowSizePixel(aSize);
+    if (nBits | WB_VSCROLL)
+        aSize.AdjustWidth(mxLineStyleSet->GetScrollWidth());
     mxLineStyleSet->GetDrawingArea()->set_size_request(aSize.Width(), 
aSize.Height());
     mxLineStyleSet->SetOutputSizePixel(aSize);
 }

Reply via email to