mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* InsetCollapsable::metrics(): Put back the test previous to revision 14472 for openinlined_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19985 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6b9a526034
commit
452348f4ce
@ -209,9 +209,7 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
|
||||
if (geometry() == TopButton
|
||||
|| geometry() == LeftButton) {
|
||||
InsetText::metrics(mi, textdim_);
|
||||
// This expression should not contain mi.base.texwidth
|
||||
openinlined_ = !hasFixedWidth()
|
||||
&& textdim_.wid < 0.5 * mi.base.bv->workWidth();
|
||||
openinlined_ = (textdim_.wid + 2 * dim.wid) <= mi.base.textwidth;
|
||||
if (openinlined_) {
|
||||
// Correct for button width.
|
||||
dim.wid += textdim_.wid;
|
||||
|
Loading…
Reference in New Issue
Block a user