mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +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.
(cherry picked from commit 3950f05497
)
This commit is contained in:
parent
43bc156a0b
commit
326eab3408
@ -184,6 +184,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:
|
||||
|
@ -62,6 +62,8 @@ What's new
|
||||
|
||||
- Do not close spellchecker after "Replace All" action (bug 11310).
|
||||
|
||||
- Fix width of collapsible insets with sublabels (bug 12046).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user