vcl/source/control/imivctl1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c0a8112de1a86d2f8b926a7b016eb35325372552
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Jul 10 07:51:32 2024 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Jul 11 07:02:46 2024 +0200

    tdf#161659: icon choice ctrl: Make use of the extra space
    
        commit f6ea343e6fb2dc3539823dee60c9c6f96fc16275
        Date:   Thu May 30 12:26:11 2024 +0200
    
            tdf#161030 Improve vertical Tab list display
    
    increased the width for items in the vertical tab
    control.
    Make use of the new space also for items using an icon.
    
    This causes them to be centered again (tdf#161659).
    
    When using the kf5 VCL plugin with the default
    Breeze style, this also causes the "New Document"
    text of the last item in the "Insert" -> "Hyperlink"
    dialog to no longer be cut off (see attachment 149544
    from tdf#123623 for the previous behavior).
    (As a side note, switching `SvxIconChoiceCtrlEntry::eTextMode`
    from `SvxIconChoiceCtrlTextMode::Short`
    to `SvxIconChoiceCtrlTextMode::Full` would generally
    allow text to wrap and use multiple lines instead of
    cutting off text at the end of the single line.)
    
    Change-Id: I7ec2575bbeb895c034dfc9f2033cea3e3986305a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170262
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>
    Reviewed-by: Rafael Lima <rafael.palma.l...@gmail.com>
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index b99f61221f2a..6f42c5c93280 100644
--- a/vcl/source/control/imivctl1.cxx
+++ b/vcl/source/control/imivctl1.cxx
@@ -81,7 +81,7 @@ SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl(
     
aVisRectChangedIdle.SetInvokeHandler(LINK(this,SvxIconChoiceCtrl_Impl,VisRectChangedHdl));
 
     Clear( true );
-    Size gridSize((nWinStyle & WB_DETAILS) ? 150 : 100, (nWinStyle & 
WB_DETAILS) ?  20 : 70);
+    Size gridSize((nWinStyle & WB_DETAILS) ? 150 : 140, (nWinStyle & 
WB_DETAILS) ?  20 : 70);
     if(pView->GetDPIScaleFactor() > 1)
     {
       gridSize.setHeight( gridSize.Height() * ( pView->GetDPIScaleFactor()) );

Reply via email to