mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
ec51c94416
commit
02783aec66
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user