mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Take label width into account for SubLabel insets
The drawing of the label should not go further than inset width. Fixes bug #12046.
This commit is contained in:
parent
6a37a67b46
commit
3950f05497
@ -223,6 +223,7 @@ void InsetCollapsible::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
int d = 0;
|
||||
theFontMetrics(font).rectText(buttonLabel(bv), w, a, d);
|
||||
dim.des += a + d;
|
||||
dim.wid = max(dim.wid, w);
|
||||
break;
|
||||
}
|
||||
case TopButton:
|
||||
|
Loading…
Reference in New Issue
Block a user