* 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:
Abdelrazak Younes 2007-09-01 23:01:21 +00:00
parent 6b9a526034
commit 452348f4ce

View File

@ -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;