summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-07-10 07:51:32 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-11 07:02:46 +0200
commitc0a8112de1a86d2f8b926a7b016eb35325372552 (patch)
tree85042dd55c120dc3a51f0642308bc23ad316db41
parent2fdee9fd60bc4bb61f773fa1f766e84f4ee0dae3 (diff)
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.tietze@documentfoundation.org> Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com> Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--vcl/source/control/imivctl1.cxx2
1 files changed, 1 insertions, 1 deletions
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()) );