Bug 168796 - Expand vertical tabs with large icons for long text and center the content
Summary: Expand vertical tabs with large icons for long text and center the content
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Vertical-Tab-dialogs
  Show dependency treegraph
 
Reported: 2025-10-10 15:37 UTC by Heiko Tietze
Modified: 2025-10-21 08:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (19.28 KB, image/png)
2025-10-10 15:37 UTC, Heiko Tietze
Details
Grid with space for two lines of text (9.29 KB, image/png)
2025-10-21 07:41 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Tietze 2025-10-10 15:37:59 UTC
Created attachment 203247 [details]
Screenshot

Large icons in stacked variant of the VT are drawn on top without any margin. It should be centered horizontally and vertically.

The tab width does not adjust for long text, here the example is "Slant and Corner Radius" for the Position & Size dialog on objects.
Comment 1 Telesto 2025-10-15 07:16:39 UTC
Expand vertical tabs for long text. You mean dynamically? So width can vary between dialogs?

I have a hard time envisioning what will change and the impact would be

I do like UI consistency/ stability. I find it rather distracting if the vertical tab bar width being calculated on content and having a different width for each dialog individually.

I personally would even consider dropping the labels and instead showing a mouse over tooltip for the label (so icon based system, like the main toolbar). But well that requires 'expressive' icons, but the most meeting that requirement, I think
Comment 2 Heiko Tietze 2025-10-15 07:22:31 UTC
(In reply to Telesto from comment #1)
> I personally would even consider dropping the labels...
Not against such an option. Different request, though.
Comment 3 Telesto 2025-10-15 09:41:59 UTC
(In reply to Heiko Tietze from comment #2)
> (In reply to Telesto from comment #1)
> > I personally would even consider dropping the labels...
> Not against such an option. Different request, though.

OK, moved to bug 168867
Comment 4 Eyal Rozenberg 2025-10-15 22:19:26 UTC
1. I would consider using shorter labels, and compensating with tab section titles as necessary. In the screenshot, it could be:

Size & Position
Rotation
Slant & Corners

2. As a fallback, though - don't expand the tab nav-pane horizontally to fit the text! :-(  Instead, I suggest you arrange for the text wrap onto a second line.
Comment 5 Heiko Tietze 2025-10-16 05:55:01 UTC
The tab size adjusts in case of small icons but does not for large. I adjusted the summary.
Comment 6 Heiko Tietze 2025-10-21 07:41:01 UTC
Expanding the tab looks okay for English but might become an issue when localized text is even longer. The alternative to wrap text into a second line requires the RenderContext for a precise TextRect() calculation in SvxIconChoiceCtrl_Impl::CalcBoundingHeight(). And since we have an equidistant grid behind the items it looks a bit awkward anyway.
Comment 7 Heiko Tietze 2025-10-21 07:41:59 UTC
Created attachment 203465 [details]
Grid with space for two lines of text
Comment 8 Heiko Tietze 2025-10-21 08:50:52 UTC
Abandoning the patch https://gerrit.libreoffice.org/c/core/+/192170 which tries to solve the issue by resizing the item.