Revert "Remove left/right spacing around top/left buttons"

Let's try to find a better solution (see ticket #12335)

This reverts commit d2f23c303c.
This commit is contained in:
Jean-Marc Lasgouttes 2022-12-10 20:52:33 +01:00
parent ec51c94416
commit 02783aec66

View File

@ -187,12 +187,9 @@ Dimension InsetCollapsible::dimensionCollapsed(BufferView const & bv) const
{
Dimension dim;
FontInfo labelfont(getLabelfont());
int const offset =
(geometry(bv) != LeftButton && geometry(bv) != TopButton)
? Inset::textOffset(&bv) : 0;
labelfont.realize(sane_font);
theFontMetrics(labelfont).buttonText(
buttonLabel(bv), offset, dim.wid, dim.asc, dim.des);
buttonLabel(bv), Inset::textOffset(&bv), dim.wid, dim.asc, dim.des);
return dim;
}