mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
* InsetCollapsable::metrics(): Allow a bit more inlined size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19993 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8695368e29
commit
7150b25b7e
@ -209,7 +209,7 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
if (geometry() == TopButton
|
||||
|| geometry() == LeftButton) {
|
||||
InsetText::metrics(mi, textdim_);
|
||||
openinlined_ = (textdim_.wid + 2 * dim.wid) <= mi.base.textwidth;
|
||||
openinlined_ = (textdim_.wid + dim.wid) < mi.base.textwidth;
|
||||
if (openinlined_) {
|
||||
// Correct for button width.
|
||||
dim.wid += textdim_.wid;
|
||||
|
Loading…
Reference in New Issue
Block a user