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
Родитель dd8495555b
Коммит ab2f76f911
3 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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