Kaydet (Commit) 35870d41 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Tomaž Vajngerl

tdf#124572 Reduce tab bar item width

The width of an tab item is now reduced and is increased by the
icon width when the protected icon needs to be drawn (so on

Change-Id: Ib4a4742b28ebab21d33e9408e3c416b1f28c6ac2
Reviewed-on: https://gerrit.libreoffice.org/73208
Tested-by: Jenkins
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 966dc7f2
......@@ -668,7 +668,9 @@ bool TabBar::ImplCalcWidth()
// Padding is dependent on font height - bigger font = bigger padding
long nFontWidth = aFont.GetFontHeight();
nNewWidth += nFontWidth * 5;
if (pItem->mbProtect)
nNewWidth += 24;
nNewWidth += nFontWidth * 2;
if (pItem->mnWidth != nNewWidth)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment