Reset the stretchy flags of underscript/overscript frames when their geometry is expected to be like subscript/superscirpt frames

This commit is contained in:
rbs%maths.uq.edu.au 2002-01-03 23:18:01 +00:00
parent 6673fe6131
commit 0f015abd9f
3 changed files with 18 additions and 0 deletions

View File

@ -208,6 +208,12 @@ XXX The winner is the outermost in conflicting settings like these:
NS_MATHML_DISPLAYSTYLE | compress);
}
// disable the strecth-all flag if we are going to act like an overscript
if ( NS_MATHML_IS_MOVABLELIMITS(mPresentationData.flags) &&
!NS_MATHML_IS_DISPLAYSTYLE(mPresentationData.flags)) {
mEmbellishData.flags &= ~NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY;
}
return rv;
}

View File

@ -202,6 +202,12 @@ XXX The winner is the outermost setting in conflicting settings like these:
NS_MATHML_DISPLAYSTYLE | NS_MATHML_COMPRESSED);
}
// disable the strecth-all flag if we are going to act like an subscript
if ( NS_MATHML_IS_MOVABLELIMITS(mPresentationData.flags) &&
!NS_MATHML_IS_DISPLAYSTYLE(mPresentationData.flags)) {
mEmbellishData.flags &= ~NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY;
}
return rv;
}

View File

@ -254,6 +254,12 @@ nsMathMLmunderoverFrame::SetInitialChildList(nsIPresContext* aPresContext,
NS_MATHML_DISPLAYSTYLE | NS_MATHML_COMPRESSED);
}
// disable the strecth-all flag if we are going to act like an subscript-superscript pair
if ( NS_MATHML_IS_MOVABLELIMITS(mPresentationData.flags) &&
!NS_MATHML_IS_DISPLAYSTYLE(mPresentationData.flags)) {
mEmbellishData.flags &= ~NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY;
}
return rv;
}